]> bbs.cooldavid.org Git - net-next-2.6.git/commit
Btrfs: make metadata chunks smaller
authorJosef Bacik <josef@redhat.com>
Mon, 7 Dec 2009 21:45:59 +0000 (21:45 +0000)
committerChris Mason <chris.mason@oracle.com>
Thu, 17 Dec 2009 17:33:38 +0000 (12:33 -0500)
commit83d3c9696fed237a3d96fce18299e2fcf112109f
treecafe54ba7801332c54adab5b1af3e0865bc32386
parent20a5239a5d0f340e29827a6a2d28a138001c44b8
Btrfs: make metadata chunks smaller

This patch makes us a bit less zealous about making sure we have enough free
metadata space by pearing down the size of new metadata chunks to 256mb instead
of 1gb.  Also, we used to try an allocate metadata chunks when allocating data,
but that sort of thing is done elsewhere now so we can just remove it.  With my
-ENOSPC test I used to have 3gb reserved for metadata out of 75gb, now I have
1.7gb.  Thanks,

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