]> rtime.felk.cvut.cz Git - linux-imx.git/commit
Btrfs: steal from global reserve if we are cleaning up orphans
authorJosef Bacik <jbacik@fusionio.com>
Thu, 7 Feb 2013 21:06:02 +0000 (16:06 -0500)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 17:59:42 +0000 (12:59 -0500)
commit5d80366e9b5e56b3ffc1923b4995e83bbbf605e3
treeabf60c6bb2534f17bb40fd60819b02e7cfa64bb8
parent8696c53304f16fde9368b9d5c89a5acb4a815d4c
Btrfs: steal from global reserve if we are cleaning up orphans

Sometimes xfstest 83 will fail to remount the scratch device because we've
gotten ourselves so full that we cannot cleanup the orphan items.  In this
case check to see if we're doing the orphan cleanup and if we are allow us
to steal our reservation from the global block rsv.  With this patch I've
not been able to reproduce the failed mount problem.  Thanks,

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