]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: introduce bdev_zone_start()
authorDamien Le Moal <dlemoal@kernel.org>
Fri, 7 Nov 2025 06:38:44 +0000 (15:38 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 7 Nov 2025 16:28:08 +0000 (09:28 -0700)
commit25976c314f6596254c9b1e2291d94393b7d5ae81
tree8926ba66b070babdadb1c03b766b19199851cfad
parente2b0ec776164c11569ee021fac89596a2642654c
block: introduce bdev_zone_start()

Introduce the function bdev_zone_start() as a more explicit (and clear)
replacement for ALIGN_DOWN() to get the start sector of a zone
containing a particular sector of a zoned block device.

Use this new helper in blkdev_get_zone_info() and
blkdev_report_zones_cached().

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c
include/linux/blkdev.h