]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: limit the global reserve to 512mb
authorJosef Bacik <jbacik@fusionio.com>
Tue, 26 Mar 2013 19:31:45 +0000 (15:31 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Thu, 28 Mar 2013 13:51:29 +0000 (09:51 -0400)
commit06838c01895b2544764178cd97918883f574d68b
treea23f0ac6995d3cf5e753998e26107beb8337bf3e
parent6892af357e8377ce9f62a1b80c7d88302a66cdc8
Btrfs: limit the global reserve to 512mb

A user reported a problem where he was getting early ENOSPC with hundreds of
gigs of free data space and 6 gigs of free metadata space.  This is because the
global block reserve was taking up the entire free metadata space.  This is
ridiculous, we have infrastructure in place to throttle if we start using too
much of the global reserve, so instead of letting it get this huge just limit it
to 512mb so that users can still get work done.  This allowed the user to
complete his rsync without issues.  Thanks

Cc: stable@vger.kernel.org
Reported-and-tested-by: Stefan Priebe <s.priebe@profihost.ag>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c