diff options
| author | Damien Le Moal <dlemoal@kernel.org> | 2025-11-07 09:38:44 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-07 19:28:08 +0300 |
| commit | 25976c314f6596254c9b1e2291d94393b7d5ae81 (patch) | |
| tree | 8926ba66b070babdadb1c03b766b19199851cfad /tools/perf/scripts/python | |
| parent | e2b0ec776164c11569ee021fac89596a2642654c (diff) | |
| download | linux-25976c314f6596254c9b1e2291d94393b7d5ae81.tar.xz | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
