Skip to content
Commit a1f76506 authored by Josef Bacik's avatar Josef Bacik
Browse files

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: default avatarJosef Bacik <josef@redhat.com>
parent 9fe6206f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment