diff options
author | 2024-06-21 12:15:06 +0900 | |
---|---|---|
committer | 2024-06-21 08:26:36 -0600 | |
commit | caaf7101c01a91a882d3da2f566579dda692367d (patch) | |
tree | 5ebbd2c4930b2697964c487e7dbd562b4709e0b8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | block: Define bdev_nr_zones() as an inline function (diff) | |
download | wireguard-linux-caaf7101c01a91a882d3da2f566579dda692367d.tar.xz wireguard-linux-caaf7101c01a91a882d3da2f566579dda692367d.zip |
block: Cleanup block device zone helpers
There is no need to conditionally define on CONFIG_BLK_DEV_ZONED the
inline helper functions bdev_nr_zones(), bdev_max_open_zones(),
bdev_max_active_zones() and disk_zone_no() as these function will return
the correct valu in all cases (zoned device or not, including when
CONFIG_BLK_DEV_ZONED is not set). Furthermore, disk_nr_zones()
definition can be simplified as disk->nr_zones is always 0 for regular
block devices.
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/20240621031506.759397-4-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions