aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/zoned.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2022-08-16 16:12:16 -0700
committerDavid Sterba <dsterba@suse.com>2022-09-26 12:27:58 +0200
commit48ff70830bec1ccc714f4e31059df737f17ec909 (patch)
treee128e4dd6c9dc5b9f3bd1f0ffae7a4d72427cd0c /fs/btrfs/zoned.c
parentbtrfs: send: fix failures when processing inodes with no links (diff)
downloadlinux-dev-48ff70830bec1ccc714f4e31059df737f17ec909.tar.xz
linux-dev-48ff70830bec1ccc714f4e31059df737f17ec909.zip
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>
Diffstat (limited to 'fs/btrfs/zoned.c')
-rw-r--r--fs/btrfs/zoned.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c
index 9f31865e6003..eff14ffd45cb 100644
--- a/fs/btrfs/zoned.c
+++ b/fs/btrfs/zoned.c
@@ -1566,7 +1566,6 @@ void btrfs_calc_zone_unusable(struct btrfs_block_group *cache)
free = cache->zone_capacity - cache->alloc_offset;
/* We only need ->free_space in ALLOC_SEQ block groups */
- cache->last_byte_to_unpin = (u64)-1;
cache->cached = BTRFS_CACHE_FINISHED;
cache->free_space_ctl->free_space = free;
cache->zone_unusable = unusable;