• J
    Btrfs: use bytes_may_use for all ENOSPC reservations · fb25e914
    Josef Bacik 提交于
    We have been using bytes_reserved for metadata reservations, which is wrong
    since we use that to keep track of outstanding reservations from the allocator.
    This resulted in us doing a lot of silly things to make sure we don't allocate a
    bunch of metadata chunks since we never had a real view of how much space was
    actually in use by metadata.
    
    This passes Arne's enospc test and xfstests as well as my own enospc tests.
    Hopefully this will get us moving in the right direction.  Thanks,
    Signed-off-by: NJosef Bacik <josef@redhat.com>
    fb25e914
extent-tree.c 194.9 KB