Skip to content

Commit 62ed0bf

Browse files
morbidrsakdave
authored andcommitted
btrfs: zoned: remove left over ASSERT checking for single profile
With commit dcf5652 ("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: dcf5652 ("btrfs: zoned: allow DUP on meta-data block groups") CC: [email protected] # 5.17 Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 0b9e667 commit 62ed0bf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/btrfs/zoned.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,6 @@ struct btrfs_device *btrfs_zoned_get_device(struct btrfs_fs_info *fs_info,
18011801

18021802
map = em->map_lookup;
18031803
/* We only support single profile for now */
1804-
ASSERT(map->num_stripes == 1);
18051804
device = map->stripes[0].dev;
18061805

18071806
free_extent_map(em);
@@ -1983,9 +1982,6 @@ bool btrfs_can_activate_zone(struct btrfs_fs_devices *fs_devices, u64 flags)
19831982
if (!btrfs_is_zoned(fs_info))
19841983
return true;
19851984

1986-
/* Non-single profiles are not supported yet */
1987-
ASSERT((flags & BTRFS_BLOCK_GROUP_PROFILE_MASK) == 0);
1988-
19891985
/* Check if there is a device with active zones left */
19901986
mutex_lock(&fs_info->chunk_mutex);
19911987
list_for_each_entry(device, &fs_devices->alloc_list, dev_alloc_list) {

0 commit comments

Comments
 (0)