Btrfs: try to free metadata pages when we free btree blocks
authorChris Mason <chris.mason@oracle.com>
Tue, 31 Mar 2009 17:47:50 +0000 (13:47 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 31 Mar 2009 18:27:58 +0000 (14:27 -0400)
commitd57e62b89796f751c9422801cbcd407a9f8dcdc4
tree353960256ddf5f92aa391a2ea570bea1d2d11fa8
parent5a3f23d515a2ebf0c750db80579ca57b28cbce6d
Btrfs: try to free metadata pages when we free btree blocks

COW means we cycle though blocks fairly quickly, and once we
free an extent on disk, it doesn't make much sense to keep the pages around.

This commit tries to immediately free the page when we free the extent,
which lowers our memory footprint significantly.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c