aboutsummaryrefslogtreecommitdiff
path: root/block/blk-stat.h
diff options
context:
space:
mode:
authorGravatar Naohiro Aota <naohiro.aota@wdc.com> 2023-03-13 16:29:49 +0900
committerGravatar David Sterba <dsterba@suse.com> 2023-03-15 20:51:06 +0100
commit9e1cdf0c354e46e428c0e0cab008abbe81b6013d (patch)
tree592172299e540456ef69a19e247c91557102050b /block/blk-stat.h
parentbtrfs: fix compiler warning on SPARC/PA-RISC handling fscrypt_setup_filename (diff)
downloadlinux-9e1cdf0c354e46e428c0e0cab008abbe81b6013d.tar.gz
linux-9e1cdf0c354e46e428c0e0cab008abbe81b6013d.tar.bz2
linux-9e1cdf0c354e46e428c0e0cab008abbe81b6013d.zip
btrfs: zoned: fix btrfs_can_activate_zone() to support DUP profile
btrfs_can_activate_zone() returns true if at least one device has one zone available for activation. This is OK for the single profile, but not OK for DUP profile. We need two zones to create a DUP block group. Fix it by properly handling the case with the profile flags. Fixes: 265f7237dd25 ("btrfs: zoned: allow DUP on meta-data block groups") CC: stable@vger.kernel.org # 6.1+ Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'block/blk-stat.h')
0 files changed, 0 insertions, 0 deletions