• Josef Bacik's avatar
    Btrfs: write out free space cache · 0cb59c99
    Josef Bacik authored
    This is a simple bit, just dump the free space cache out to our preallocated
    inode when we're writing out dirty block groups.  There are a bunch of changes
    in inode.c in order to account for special cases.  Mostly when we're doing the
    writeout we're holding trans_mutex, so we need to use the nolock transacation
    functions.  Also we can't do asynchronous completions since the async thread
    could be blocked on already completed IO waiting for the transaction lock.  This
    has been tested with xfstests and btrfs filesystem balance, as well as my ENOSPC
    tests.  Thanks,
    Signed-off-by: default avatarJosef Bacik <josef@redhat.com>
    0cb59c99
free-space-cache.h 2.71 KB