]> www.infradead.org Git - users/hch/misc.git/commit
block: Add a public bdev_zone_is_seq() helper
authorDamien Le Moal <dlemoal@kernel.org>
Thu, 7 Nov 2024 06:43:00 +0000 (15:43 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Nov 2024 22:30:54 +0000 (15:30 -0700)
commitf3d9bf05140dd242cdc33c431489a853f2bc1b67
treef05c753fe689a976ae0a0e2ef7f4029ba704b33c
parentd7cb6d7414ea1b33536fa6d11805cb8dceec1f97
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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20241107064300.227731-3-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c
include/linux/blkdev.h