• J
    Btrfs: rework shrink_delalloc · f4c738c2
    Josef Bacik 提交于
    So shrink_delalloc has grown all sorts of cruft over the years thanks to
    many reworkings of how we track enospc.  What happens now as we fill up the
    disk is we will loop for freaking ever hoping to reclaim a arbitrary amount
    of space of metadata, this was from when everybody flushed at the same time.
    Now we only have people flushing one at a time.  So instead of trying to
    reclaim a huge amount of space, just try to flush a decent chunk of space,
    and stop looping as soon as we have enough free space to satisfy our
    reservation.  This makes xfstests 224 go much faster.  Thanks,
    Signed-off-by: NJosef Bacik <jbacik@fusionio.com>
    f4c738c2
extent-tree.c 213.1 KB