]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Btrfs: make metadata chunks smaller
authorJosef Bacik <josef@redhat.com>
Mon, 7 Dec 2009 21:45:59 +0000 (21:45 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:20:00 +0000 (13:20 -0700)
commite4b2abc4322e89d1ce7e43c7ada5317acd80d6bc
tree17d9e68a0a45856cc48027d14e0732579f6852ba
parent0ab44aac74dba93ef56be5d840c971766e67a227
Btrfs: make metadata chunks smaller

commit 83d3c9696fed237a3d96fce18299e2fcf112109f upstream.

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>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/btrfs/extent-tree.c
fs/btrfs/volumes.c