diff options
author | Josef Bacik <josef@redhat.com> | 2010-09-16 14:29:55 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2010-10-22 15:54:51 -0400 |
commit | a1f765061e1491d5ec467429d0d6adfd9df2f6d9 (patch) | |
tree | 0263688d261b69aedf2dad690ac1d93f875eec78 /fs/btrfs/ioctl.c | |
parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) |
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 <josef@redhat.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
0 files changed, 0 insertions, 0 deletions