From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Pankaj Raghav <p.raghav@samsung.com>
Cc: jiangbo.365@bytedance.com, linux-nvme@lists.infradead.org,
clm@fb.com, dm-devel@redhat.com, hch@lst.de, agk@redhat.com,
naohiro.aota@wdc.com, sagi@grimberg.me, gost.dev@samsung.com,
damien.lemoal@opensource.wdc.com, jonathan.derrick@linux.dev,
kch@nvidia.com, chao@kernel.org, snitzer@kernel.org,
josef@toxicpanda.com, linux-block@vger.kernel.org,
dsterba@suse.com, kbusch@kernel.org, matias.bjorling@wdc.com,
bvanassche@acm.org, axboe@kernel.dk, johannes.thumshirn@wdc.com,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net, mcgrof@kernel.org,
linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: [dm-devel] [PATCH 15/16] f2fs: ensure only power of 2 zone sizes are allowed
Date: Tue, 3 May 2022 13:05:19 -0700 [thread overview]
Message-ID: <YnGK/8lu2GW4gEY0@google.com> (raw)
In-Reply-To: <20220427160255.300418-16-p.raghav@samsung.com>
Applied to f2fs tree. Thanks,
On 04/27, Pankaj Raghav wrote:
> From: Luis Chamberlain <mcgrof@kernel.org>
>
> F2FS zoned support has power of 2 zone size assumption in many places
> such as in __f2fs_issue_discard_zone, init_blkz_info. As the power of 2
> requirement has been removed from the block layer, explicitly add a
> condition in f2fs to allow only power of 2 zone size devices.
>
> This condition will be relaxed once those calculation based on power of
> 2 is made generic.
>
> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
> Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
> ---
> fs/f2fs/super.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
> index f64761a15df7..db79abf30002 100644
> --- a/fs/f2fs/super.c
> +++ b/fs/f2fs/super.c
> @@ -3685,6 +3685,10 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi)
> return 0;
>
> zone_sectors = bdev_zone_sectors(bdev);
> + if (!is_power_of_2(zone_sectors)) {
> + f2fs_err(sbi, "F2FS does not support non power of 2 zone sizes\n");
> + return -EINVAL;
> + }
>
> if (sbi->blocks_per_blkz && sbi->blocks_per_blkz !=
> SECTOR_TO_BLOCK(zone_sectors))
> --
> 2.25.1
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
WARNING: multiple messages have this Message-ID (diff)
From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Pankaj Raghav <p.raghav@samsung.com>
Cc: axboe@kernel.dk, snitzer@kernel.org, hch@lst.de,
mcgrof@kernel.org, naohiro.aota@wdc.com, sagi@grimberg.me,
damien.lemoal@opensource.wdc.com, dsterba@suse.com,
johannes.thumshirn@wdc.com, linux-kernel@vger.kernel.org,
linux-btrfs@vger.kernel.org, clm@fb.com, gost.dev@samsung.com,
chao@kernel.org, linux-f2fs-devel@lists.sourceforge.net,
josef@toxicpanda.com, jonathan.derrick@linux.dev, agk@redhat.com,
kbusch@kernel.org, kch@nvidia.com,
linux-nvme@lists.infradead.org, dm-devel@redhat.com,
bvanassche@acm.org, jiangbo.365@bytedance.com,
linux-fsdevel@vger.kernel.org, matias.bjorling@wdc.com,
linux-block@vger.kernel.org
Subject: Re: [PATCH 15/16] f2fs: ensure only power of 2 zone sizes are allowed
Date: Tue, 3 May 2022 13:05:19 -0700 [thread overview]
Message-ID: <YnGK/8lu2GW4gEY0@google.com> (raw)
In-Reply-To: <20220427160255.300418-16-p.raghav@samsung.com>
Applied to f2fs tree. Thanks,
On 04/27, Pankaj Raghav wrote:
> From: Luis Chamberlain <mcgrof@kernel.org>
>
> F2FS zoned support has power of 2 zone size assumption in many places
> such as in __f2fs_issue_discard_zone, init_blkz_info. As the power of 2
> requirement has been removed from the block layer, explicitly add a
> condition in f2fs to allow only power of 2 zone size devices.
>
> This condition will be relaxed once those calculation based on power of
> 2 is made generic.
>
> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
> Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
> ---
> fs/f2fs/super.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
> index f64761a15df7..db79abf30002 100644
> --- a/fs/f2fs/super.c
> +++ b/fs/f2fs/super.c
> @@ -3685,6 +3685,10 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi)
> return 0;
>
> zone_sectors = bdev_zone_sectors(bdev);
> + if (!is_power_of_2(zone_sectors)) {
> + f2fs_err(sbi, "F2FS does not support non power of 2 zone sizes\n");
> + return -EINVAL;
> + }
>
> if (sbi->blocks_per_blkz && sbi->blocks_per_blkz !=
> SECTOR_TO_BLOCK(zone_sectors))
> --
> 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: Jaegeuk Kim <jaegeuk@kernel.org>
To: Pankaj Raghav <p.raghav@samsung.com>
Cc: jiangbo.365@bytedance.com, linux-nvme@lists.infradead.org,
clm@fb.com, dm-devel@redhat.com, hch@lst.de, agk@redhat.com,
naohiro.aota@wdc.com, sagi@grimberg.me, gost.dev@samsung.com,
damien.lemoal@opensource.wdc.com, jonathan.derrick@linux.dev,
kch@nvidia.com, snitzer@kernel.org, josef@toxicpanda.com,
linux-block@vger.kernel.org, dsterba@suse.com, kbusch@kernel.org,
matias.bjorling@wdc.com, bvanassche@acm.org, axboe@kernel.dk,
johannes.thumshirn@wdc.com, linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net, mcgrof@kernel.org,
linux-fsdevel@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: [f2fs-dev] [PATCH 15/16] f2fs: ensure only power of 2 zone sizes are allowed
Date: Tue, 3 May 2022 13:05:19 -0700 [thread overview]
Message-ID: <YnGK/8lu2GW4gEY0@google.com> (raw)
In-Reply-To: <20220427160255.300418-16-p.raghav@samsung.com>
Applied to f2fs tree. Thanks,
On 04/27, Pankaj Raghav wrote:
> From: Luis Chamberlain <mcgrof@kernel.org>
>
> F2FS zoned support has power of 2 zone size assumption in many places
> such as in __f2fs_issue_discard_zone, init_blkz_info. As the power of 2
> requirement has been removed from the block layer, explicitly add a
> condition in f2fs to allow only power of 2 zone size devices.
>
> This condition will be relaxed once those calculation based on power of
> 2 is made generic.
>
> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
> Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
> ---
> fs/f2fs/super.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
> index f64761a15df7..db79abf30002 100644
> --- a/fs/f2fs/super.c
> +++ b/fs/f2fs/super.c
> @@ -3685,6 +3685,10 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi)
> return 0;
>
> zone_sectors = bdev_zone_sectors(bdev);
> + if (!is_power_of_2(zone_sectors)) {
> + f2fs_err(sbi, "F2FS does not support non power of 2 zone sizes\n");
> + return -EINVAL;
> + }
>
> if (sbi->blocks_per_blkz && sbi->blocks_per_blkz !=
> SECTOR_TO_BLOCK(zone_sectors))
> --
> 2.25.1
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next prev parent reply other threads:[~2022-05-03 20:18 UTC|newest]
Thread overview: 160+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20220427160256eucas1p2db2b58792ffc93026d870c260767da14@eucas1p2.samsung.com>
2022-04-27 16:02 ` [dm-devel] [PATCH 00/16] support non power of 2 zoned devices Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 01/16] block: make blkdev_nr_zones and blk_queue_zone_no generic for npo2 zsze Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-29 17:16 ` [dm-devel] " Adam Manzanares
2022-04-29 17:16 ` [f2fs-dev] " Adam Manzanares
2022-04-29 17:16 ` Adam Manzanares
2022-05-03 16:37 ` [dm-devel] " Bart Van Assche
2022-05-03 16:37 ` [f2fs-dev] " Bart Van Assche
2022-05-03 16:37 ` Bart Van Assche
2022-05-03 16:43 ` [dm-devel] " Damien Le Moal
2022-05-03 16:43 ` [f2fs-dev] " Damien Le Moal via Linux-f2fs-devel
2022-05-03 16:43 ` Damien Le Moal
2022-05-04 8:35 ` [dm-devel] " Pankaj Raghav
2022-05-04 8:35 ` [f2fs-dev] " Pankaj Raghav
2022-05-04 8:35 ` Pankaj Raghav
2022-05-04 16:52 ` Hannes Reinecke
2022-05-04 16:52 ` Hannes Reinecke
2022-04-27 16:02 ` [dm-devel] [PATCH 02/16] block: add blk_queue_zone_aligned and bdev_zone_aligned helper Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 23:52 ` [dm-devel] " Bart Van Assche
2022-04-27 23:52 ` [f2fs-dev] " Bart Van Assche
2022-04-27 23:52 ` Bart Van Assche
2022-04-28 15:33 ` Pankaj Raghav
2022-05-04 16:55 ` Hannes Reinecke
2022-05-04 16:55 ` Hannes Reinecke
2022-04-27 16:02 ` [dm-devel] [PATCH 03/16] block: add bdev_zone_no helper Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 23:31 ` [dm-devel] " Damien Le Moal
2022-04-27 23:31 ` [f2fs-dev] " Damien Le Moal via Linux-f2fs-devel
2022-04-27 23:31 ` Damien Le Moal
2022-04-28 15:40 ` Pankaj Raghav
2022-04-27 23:53 ` [dm-devel] " Bart Van Assche
2022-04-27 23:53 ` [f2fs-dev] " Bart Van Assche
2022-04-27 23:53 ` Bart Van Assche
2022-04-28 15:34 ` Pankaj Raghav
2022-05-04 16:55 ` Hannes Reinecke
2022-05-04 16:55 ` Hannes Reinecke
2022-04-27 16:02 ` [dm-devel] [PATCH 04/16] block: allow blk-zoned devices to have non-power-of-2 zone size Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 23:37 ` [dm-devel] " Damien Le Moal
2022-04-27 23:37 ` [f2fs-dev] " Damien Le Moal via Linux-f2fs-devel
2022-04-27 23:37 ` Damien Le Moal
2022-04-28 17:29 ` [dm-devel] " Luis Chamberlain
2022-04-28 17:29 ` [f2fs-dev] " Luis Chamberlain
2022-04-28 17:29 ` Luis Chamberlain
2022-04-28 19:04 ` Pankaj Raghav
2022-05-04 16:59 ` Hannes Reinecke
2022-05-04 16:59 ` Hannes Reinecke
2022-05-04 18:46 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 05/16] nvme: zns: Allow ZNS drives that have non-power_of_2 " Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-29 17:23 ` [dm-devel] " Adam Manzanares
2022-04-29 17:23 ` [f2fs-dev] " Adam Manzanares
2022-04-29 17:23 ` Adam Manzanares
2022-05-03 16:50 ` [dm-devel] " Bart Van Assche
2022-05-03 16:50 ` [f2fs-dev] " Bart Van Assche
2022-05-03 16:50 ` Bart Van Assche
2022-05-04 8:38 ` [dm-devel] " Pankaj Raghav
2022-05-04 8:38 ` [f2fs-dev] " Pankaj Raghav
2022-05-04 8:38 ` Pankaj Raghav
2022-05-04 17:03 ` Hannes Reinecke
2022-05-04 17:03 ` Hannes Reinecke
2022-05-04 18:55 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 06/16] nvmet: use blk_queue_zone_no() Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-29 17:27 ` [dm-devel] " Adam Manzanares
2022-04-29 17:27 ` [f2fs-dev] " Adam Manzanares
2022-04-29 17:27 ` Adam Manzanares
2022-05-03 16:54 ` [dm-devel] " Bart Van Assche
2022-05-03 16:54 ` [f2fs-dev] " Bart Van Assche
2022-05-03 16:54 ` Bart Van Assche
2022-05-04 17:05 ` Hannes Reinecke
2022-05-04 17:05 ` Hannes Reinecke
2022-04-27 16:02 ` [dm-devel] [PATCH 07/16] btrfs: zoned: Cache superblock location in btrfs_zoned_device_info Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 08/16] btrfs: zoned: add generic btrfs helpers for zoned devices Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 09/16] btrfs: zoned: Make sb_zone_number function non power of 2 compatible Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 10/16] btrfs: zoned: use btrfs zone helpers to support non po2 zoned devices Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 11/16] btrfs: zoned: relax the alignment constraint for " Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 12/16] zonefs: allow non power of 2 " Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 23:39 ` [dm-devel] " Damien Le Moal
2022-04-27 23:39 ` [f2fs-dev] " Damien Le Moal via Linux-f2fs-devel
2022-04-27 23:39 ` Damien Le Moal
2022-04-28 15:54 ` Pankaj Raghav
2022-04-28 21:49 ` Damien Le Moal
2022-04-29 7:55 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 13/16] null_blk: " Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-29 17:30 ` [dm-devel] " Adam Manzanares
2022-04-29 17:30 ` [f2fs-dev] " Adam Manzanares
2022-04-29 17:30 ` Adam Manzanares
2022-05-03 17:01 ` [dm-devel] " Bart Van Assche
2022-05-03 17:01 ` [f2fs-dev] " Bart Van Assche
2022-05-03 17:01 ` Bart Van Assche
2022-05-04 17:10 ` Hannes Reinecke
2022-05-04 17:10 ` Hannes Reinecke
2022-04-27 16:02 ` [dm-devel] [PATCH 14/16] f2fs: call bdev_zone_sectors() only once on init_blkz_info() Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-05-03 20:04 ` [dm-devel] " Jaegeuk Kim
2022-05-03 20:04 ` [f2fs-dev] " Jaegeuk Kim
2022-05-03 20:04 ` Jaegeuk Kim
2022-04-27 16:02 ` [dm-devel] [PATCH 15/16] f2fs: ensure only power of 2 zone sizes are allowed Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-05-03 20:05 ` Jaegeuk Kim [this message]
2022-05-03 20:05 ` [f2fs-dev] " Jaegeuk Kim
2022-05-03 20:05 ` Jaegeuk Kim
2022-05-04 8:53 ` [dm-devel] " Pankaj Raghav
2022-05-04 8:53 ` [f2fs-dev] " Pankaj Raghav
2022-05-04 8:53 ` Pankaj Raghav
2022-04-27 16:02 ` [dm-devel] [PATCH 16/16] dm-zoned: " Pankaj Raghav
2022-04-27 16:02 ` [f2fs-dev] " Pankaj Raghav
2022-04-27 16:02 ` Pankaj Raghav
2022-04-27 23:42 ` [dm-devel] " Damien Le Moal
2022-04-27 23:42 ` [f2fs-dev] " Damien Le Moal via Linux-f2fs-devel
2022-04-27 23:42 ` Damien Le Moal
2022-04-28 17:34 ` [dm-devel] " Luis Chamberlain
2022-04-28 17:34 ` [f2fs-dev] " Luis Chamberlain
2022-04-28 17:34 ` Luis Chamberlain
2022-04-28 21:43 ` [dm-devel] " Damien Le Moal
2022-04-28 21:43 ` [f2fs-dev] " Damien Le Moal via Linux-f2fs-devel
2022-04-28 21:43 ` Damien Le Moal
2022-04-28 22:06 ` [dm-devel] " Luis Chamberlain
2022-04-28 22:06 ` [f2fs-dev] " Luis Chamberlain
2022-04-28 22:06 ` Luis Chamberlain
2022-05-04 17:11 ` Hannes Reinecke
2022-05-04 17:11 ` Hannes Reinecke
2022-05-02 22:07 ` [dm-devel] [PATCH 00/16] support non power of 2 zoned devices Johannes Thumshirn
2022-05-02 22:07 ` [f2fs-dev] " Johannes Thumshirn via Linux-f2fs-devel
2022-05-02 22:07 ` Johannes Thumshirn
2022-05-03 9:12 ` [dm-devel] " Pankaj Raghav
2022-05-03 9:12 ` [f2fs-dev] " Pankaj Raghav
2022-05-03 9:12 ` Pankaj Raghav
2022-05-04 21:14 ` [dm-devel] " David Sterba
2022-05-04 21:14 ` [f2fs-dev] " David Sterba
2022-05-04 21:14 ` David Sterba
2022-05-05 7:28 ` [dm-devel] " Pankaj Raghav
2022-05-05 7:28 ` [f2fs-dev] " Pankaj Raghav
2022-05-05 7:28 ` Pankaj Raghav
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YnGK/8lu2GW4gEY0@google.com \
--to=jaegeuk@kernel.org \
--cc=agk@redhat.com \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=chao@kernel.org \
--cc=clm@fb.com \
--cc=damien.lemoal@opensource.wdc.com \
--cc=dm-devel@redhat.com \
--cc=dsterba@suse.com \
--cc=gost.dev@samsung.com \
--cc=hch@lst.de \
--cc=jiangbo.365@bytedance.com \
--cc=johannes.thumshirn@wdc.com \
--cc=jonathan.derrick@linux.dev \
--cc=josef@toxicpanda.com \
--cc=kbusch@kernel.org \
--cc=kch@nvidia.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=matias.bjorling@wdc.com \
--cc=mcgrof@kernel.org \
--cc=naohiro.aota@wdc.com \
--cc=p.raghav@samsung.com \
--cc=sagi@grimberg.me \
--cc=snitzer@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.