• C
    Btrfs: don't check for delalloc_bytes in cache_save_setup · e4c88f00
    Chris Mason 提交于
    Now that we're doing free space cache writeback outside the critical
    section in the commit, there is a bigger window for delalloc_bytes to
    be added after a cache has been written.  find_free_extent may do this
    without putting the block group back into the dirty list, and also
    without a transaction running.
    
    Checking for delalloc_bytes in cache_save_setup means we might leave the
    cache marked as written without invalidating it.  Consistency checks
    during mount will toss the cache, but it's better to get rid of the
    check in cache_save_setup and let it get invalidated by the checks
    already done during cache write out.
    Signed-off-by: NChris Mason <clm@fb.com>
    e4c88f00
extent-tree.c 271.0 KB