]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: remove left over ASSERT checking for single profile
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 7 Mar 2022 10:47:18 +0000 (02:47 -0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 23 Mar 2022 22:34:15 +0000 (23:34 +0100)
commit9c9c62ad043061d35107d82429c6c60004b22185
tree2bfe737ead0167aaa4a8f273e5400fe003818fac
parent6b40cb587c0100489ccb4f8baab8c5bc8525f41f
btrfs: zoned: remove left over ASSERT checking for single profile

With commit dcf5652291f6 ("btrfs: zoned: allow DUP on meta-data block
groups") we started allowing DUP on metadata block groups, so the
ASSERT()s in btrfs_can_activate_zone() and btrfs_zoned_get_device() are
no longer valid and in fact even harmful.

Fixes: dcf5652291f6 ("btrfs: zoned: allow DUP on meta-data block groups")
CC: stable@vger.kernel.org # 5.17
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zoned.c