]> rtime.felk.cvut.cz Git - linux-imx.git/commit
Btrfs: do not allocate chunks as agressively
authorJosef Bacik <jbacik@fusionio.com>
Tue, 14 Aug 2012 20:20:52 +0000 (16:20 -0400)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:02 +0000 (15:19 -0400)
commit54338b5cc4fa3cfe260e8e4ade8b62a9079ea3f9
treea522e7606064efdfe51b444c5c8cec158c9ca2f6
parent7c735313bd1277c2eb28421934d4c7a0fa7339f7
Btrfs: do not allocate chunks as agressively

Swinging this pendulum back the other way.  We've been allocating chunks up
to 2% of the disk no matter how much we actually have allocated.  So instead
fix this calculation to only allocate chunks if we have more than 80% of the
space available allocated.  Please test this as it will likely cause all
sorts of ENOSPC problems to pop up suddenly.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c