diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-07-15 21:45:27 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 12:27:54 +0200 |
commit | 7b9c293b050f92e3441150f34f1dd801a0040e94 (patch) | |
tree | 5cc31d39eb94c234b8525f296ea8bb8cec1f1f17 /fs/btrfs/block-group.h | |
parent | btrfs: simplify block group traversal in btrfs_put_block_group_cache (diff) | |
download | linux-7b9c293b050f92e3441150f34f1dd801a0040e94.tar.xz linux-7b9c293b050f92e3441150f34f1dd801a0040e94.zip |
btrfs: remove BLOCK_GROUP_FLAG_HAS_CACHING_CTL
This is used mostly to determine if we need to look at the caching ctl
list and clean up any references to this block group. However we never
clear this flag, specifically because we need to know if we have to
remove a caching ctl we have for this block group still. This is in the
remove block group path which isn't a fast path, so the optimization
doesn't really matter, simplify this logic and remove the flag.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-group.h')
-rw-r--r-- | fs/btrfs/block-group.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h index 2a2cae6038c7..66221da02e41 100644 --- a/fs/btrfs/block-group.h +++ b/fs/btrfs/block-group.h @@ -49,7 +49,6 @@ enum btrfs_chunk_alloc_enum { /* Block group flags set at runtime */ enum btrfs_block_group_flags { BLOCK_GROUP_FLAG_IREF, - BLOCK_GROUP_FLAG_HAS_CACHING_CTL, BLOCK_GROUP_FLAG_REMOVED, BLOCK_GROUP_FLAG_TO_COPY, BLOCK_GROUP_FLAG_RELOCATING_REPAIR, |