From: Josef Bacik Date: Thu, 16 Sep 2010 18:29:55 +0000 (-0400) Subject: Btrfs: stop trying to shrink delalloc if there are no inodes to reclaim X-Git-Tag: v2.6.37-rc1~19^2~22^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1f765061e1491d5ec467429d0d6adfd9df2f6d9;p=pandora-kernel.git Btrfs: stop trying to shrink delalloc if there are no inodes to reclaim In very severe ENOSPC cases we can run out of inodes to do delalloc on, which means we'll just keep looping trying to shrink delalloc. Instead, if we fail to shrink delalloc 3 times in a row break out since we're not likely to make any progress. Tested this with a 100mb fs an xfstests test 13. Before the patch it would hang the box, with the patch we get -ENOSPC like we should. Thanks, Signed-off-by: Josef Bacik --- Reading git-diff-tree failed