• Josef Bacik's avatar
    Btrfs: stop trying to shrink delalloc if there are no inodes to reclaim · a1f76506
    Josef Bacik authored
    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>
    a1f76506
extent-tree.c 213 KB