* [f2fs-dev] [PATCH] f2fs:remove the restriction on zone sector being align to pow2
@ 2024-04-28 11:14 Liao Yuanhong via Linux-f2fs-devel
2024-04-28 11:23 ` Chao Yu
0 siblings, 1 reply; 2+ messages in thread
From: Liao Yuanhong via Linux-f2fs-devel @ 2024-04-28 11:14 UTC (permalink / raw)
To: Jaegeuk Kim, Chao Yu; +Cc: Liao Yuanhong, linux-kernel, bo.wu, linux-f2fs-devel
For zoned-UFS, sector size may not aligned to pow2, so we need to remove
the pow2 limitation.
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
---
drivers/md/dm-table.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index 41f1d731ae5a..823f2f6a2d53 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -1663,10 +1663,6 @@ static int validate_hardware_zoned(struct dm_table *t, bool zoned,
return -EINVAL;
}
- /* Check zone size validity and compatibility */
- if (!zone_sectors || !is_power_of_2(zone_sectors))
- return -EINVAL;
-
if (dm_table_any_dev_attr(t, device_not_matches_zone_sectors, &zone_sectors)) {
DMERR("%s: zone sectors is not consistent across all zoned devices",
dm_device_name(t->md));
--
2.25.1
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [f2fs-dev] [PATCH] f2fs:remove the restriction on zone sector being align to pow2
2024-04-28 11:14 [f2fs-dev] [PATCH] f2fs:remove the restriction on zone sector being align to pow2 Liao Yuanhong via Linux-f2fs-devel
@ 2024-04-28 11:23 ` Chao Yu
0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2024-04-28 11:23 UTC (permalink / raw)
To: Liao Yuanhong, Jaegeuk Kim; +Cc: linux-kernel, bo.wu, linux-f2fs-devel
On 2024/4/28 19:14, Liao Yuanhong wrote:
> For zoned-UFS, sector size may not aligned to pow2, so we need to remove
> the pow2 limitation.
>
> Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
> ---
> drivers/md/dm-table.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
> index 41f1d731ae5a..823f2f6a2d53 100644
> --- a/drivers/md/dm-table.c
> +++ b/drivers/md/dm-table.c
Hi, please discuss this in dm-devel@lists.linux.dev, thanks.
Thanks,
> @@ -1663,10 +1663,6 @@ static int validate_hardware_zoned(struct dm_table *t, bool zoned,
> return -EINVAL;
> }
>
> - /* Check zone size validity and compatibility */
> - if (!zone_sectors || !is_power_of_2(zone_sectors))
> - return -EINVAL;
> -
> if (dm_table_any_dev_attr(t, device_not_matches_zone_sectors, &zone_sectors)) {
> DMERR("%s: zone sectors is not consistent across all zoned devices",
> dm_device_name(t->md));
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-28 11:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-28 11:14 [f2fs-dev] [PATCH] f2fs:remove the restriction on zone sector being align to pow2 Liao Yuanhong via Linux-f2fs-devel
2024-04-28 11:23 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).