aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPankaj Raghav <[email protected]>2023-01-10 15:36:35 +0100
committerJens Axboe <[email protected]>2023-01-29 15:18:34 -0700
commitd67ea690ce0983dadf59cd06facc18f3acc89cea (patch)
tree5fbcbf0decc41e7b6c99e44bb290ce554c02ff81 /tools/perf/scripts/python/export-to-sqlite.py
parente29b210021dcf8e03e0dcc035107afaeb55e6631 (diff)
block: introduce bdev_zone_no helper
Add a generic bdev_zone_no() helper to calculate zone number for a given sector in a block device. This helper internally uses disk_zone_no() to find the zone number. Use the helper bdev_zone_no() to calculate nr of zones. This lets us make modifications to the math if needed in one place. Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Pankaj Raghav <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions