Commit 3c19cbf4 authored by Damien Le Moal's avatar Damien Le Moal Committed by Bart Van Assche
Browse files

UPSTREAM: block: Add a public bdev_zone_is_seq() helper



Turn the private disk_zone_is_conv() function in blk-zoned.c into a
public and documented bdev_zone_is_seq() helper with the inverse
polarity of the original function, also adding a check for non-zoned
devices so that all file systems can use the helper, even with a regular
block device.

Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20241107064300.227731-3-dlemoal@kernel.org


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Bug: 234829282
Change-Id: Ib2984d8e45b391589f1b724173d2b0d886fa57c4
(cherry picked from commit f3d9bf05)
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 12aafa4b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment