]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't check for delalloc_bytes in cache_save_setup
authorChris Mason <clm@fb.com>
Sat, 18 Apr 2015 12:22:48 +0000 (05:22 -0700)
committerChris Mason <clm@fb.com>
Sun, 26 Apr 2015 13:26:58 +0000 (06:26 -0700)
commit9a12b434c3f0da0eb6e38f8bad567ef0c386d98f
tree738af0712562d398e507f565f827d6210de41605
parent7755762b61cedcde00a72ab25724ec3d81a04cf4
Btrfs: don't check for delalloc_bytes in cache_save_setup

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: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c