Message ID | 930bc4470fafc02a3b8888fdc24f929977f7df24.1624880252.git.anand.jain@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [RFC] btrfs: drop check for lowest max_zone_append_size in btrfs_check_zoned_mode | expand |
On 28/06/2021 13:45, Anand Jain wrote: > Commit 862931c76327 (btrfs: introduce max_zone_append_size) add it. > btrfs_check_zoned_mode() found the lowest of these per device > max_zone_append_size but it does not use it. So drop such a check. > > Signed-off-by: Anand Jain <anand.jain@oracle.com> > --- > RFC because I am not sure if this check is preparatory for something > WIP. > Oops that should've probably be folded into the patch I've sent. My bad, I'll send a v2 layer today.
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index fa481d1ce524..76754e441e20 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -529,7 +529,6 @@ int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info) u64 zoned_devices = 0; u64 nr_devices = 0; u64 zone_size = 0; - u64 max_zone_append_size = 0; const bool incompat_zoned = btrfs_fs_incompat(fs_info, ZONED); int ret = 0; @@ -565,11 +564,6 @@ int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info) ret = -EINVAL; goto out; } - if (!max_zone_append_size || - (zone_info->max_zone_append_size && - zone_info->max_zone_append_size < max_zone_append_size)) - max_zone_append_size = - zone_info->max_zone_append_size; } nr_devices++; }
Commit 862931c76327 (btrfs: introduce max_zone_append_size) add it. btrfs_check_zoned_mode() found the lowest of these per device max_zone_append_size but it does not use it. So drop such a check. Signed-off-by: Anand Jain <anand.jain@oracle.com> --- RFC because I am not sure if this check is preparatory for something WIP. fs/btrfs/zoned.c | 6 ------ 1 file changed, 6 deletions(-)