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

Btrfs: wait for ordered extents if we're in trouble when shrinking delalloc



The only way we actually reclaim delalloc space is waiting for the IO to
completely finish.  Usually we kick off a bunch of IO and wait for a little bit
and hope we can make our reservation, and usually this works out pretty well.
With overcommit however we can get seriously underwater if we're filling up the
disk quickly, so we need to be able to force the delalloc shrinker to wait for
the ordered IO to finish to give us a better chance of actually reclaiming
enough space to get our reservation.  Thanks,

Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
parent bbb495c2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment