]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
Btrfs: enforce metadata allocation clustering
authorChris Mason <chris.mason@oracle.com>
Fri, 7 Nov 2008 02:48:27 +0000 (21:48 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 7 Nov 2008 02:48:27 +0000 (21:48 -0500)
commit3b7885bf96e03271a9fff41124c38ed7176616e2
tree6dcadb0d9548f990fd2b67367cbf8bfde40992d5
parent771ed689d2cd53439e28e095bc38fbe40a71429e
Btrfs: enforce metadata allocation clustering

The allocator uses the last allocation as a starting point for metadata
allocations, and tries to allocate in clusters of at least 256k.

If the search for a free block fails to find the expected block, this patch
forces a new cluster to be found in the free list.

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