]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: get rid of block group caching progress logic
authorOmar Sandoval <osandov@fb.com>
Tue, 16 Aug 2022 23:12:16 +0000 (16:12 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:58 +0000 (12:27 +0200)
commit48ff70830bec1ccc714f4e31059df737f17ec909
treee128e4dd6c9dc5b9f3bd1f0ffae7a4d72427cd0c
parent9ed0a72e5b355d49fc9034ec35da3b602bfcef57
btrfs: get rid of block group caching progress logic

struct btrfs_caching_ctl::progress and struct
btrfs_block_group::last_byte_to_unpin were previously needed to ensure
that unpin_extent_range() didn't return a range to the free space cache
before the caching thread had a chance to cache that range. However, the
commit "btrfs: fix space cache corruption and potential double
allocations" made it so that we always synchronously cache the block
group at the time that we pin the extent, so this machinery is no longer
necessary.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c
fs/btrfs/block-group.h
fs/btrfs/extent-tree.c
fs/btrfs/free-space-tree.c
fs/btrfs/transaction.c
fs/btrfs/zoned.c