• J
    Btrfs: allow callers to specify if flushing can occur for btrfs_block_rsv_check · 482e6dc5
    Josef Bacik 提交于
    If you run xfstest 224 it you will get lots of messages about not being able to
    delete inodes and that they will be cleaned up next mount.  This is because
    btrfs_block_rsv_check was not calling reserve_metadata_bytes with the ability to
    flush, so if there was not enough space, it simply failed.  But in truncate and
    evict case we could easily flush space to try and get enough space to do our
    work, so make btrfs_block_rsv_check take a flush argument to pass down to
    reserve_metadata_bytes.  Now xfstests 224 runs fine without all those
    complaints.  Thanks,
    Signed-off-by: NJosef Bacik <josef@redhat.com>
    482e6dc5
extent-tree.c 195.5 KB