btrfs: remove BLOCK_GROUP_FLAG_HAS_CACHING_CTL
authorJosef Bacik <josef@toxicpanda.com>
Fri, 15 Jul 2022 19:45:27 +0000 (15:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:54 +0000 (12:27 +0200)
commit7b9c293b050f92e3441150f34f1dd801a0040e94
tree5cc31d39eb94c234b8525f296ea8bb8cec1f1f17
parent50c31eaa4ccf6923cd19d79033f8d7584de9077e
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>
fs/btrfs/block-group.c
fs/btrfs/block-group.h