Skip to content

Commit 1a79c1f

Browse files
Liu Bokdave
authored andcommitted
Btrfs: update comments in cache_save_setup
We also don't bother to flush free space cache while with free space tree. Cc: David Sterba <[email protected]> Signed-off-by: Liu Bo <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 539b50d commit 1a79c1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/btrfs/extent-tree.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3443,7 +3443,8 @@ static int cache_save_setup(struct btrfs_block_group_cache *block_group,
34433443
/*
34443444
* don't bother trying to write stuff out _if_
34453445
* a) we're not cached,
3446-
* b) we're with nospace_cache mount option.
3446+
* b) we're with nospace_cache mount option,
3447+
* c) we're with v2 space_cache (FREE_SPACE_TREE).
34473448
*/
34483449
dcs = BTRFS_DC_WRITTEN;
34493450
spin_unlock(&block_group->lock);

0 commit comments

Comments
 (0)