diff options
author | 2024-06-21 12:15:05 +0900 | |
---|---|---|
committer | 2024-06-21 08:26:35 -0600 | |
commit | b6cfe2287df6e26d685af8a8a96ed1bf87bdde28 (patch) | |
tree | 28cdc450bebff103cce955b9f6ebe958e15f6148 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | null_blk: Do not set disk->nr_zones (diff) | |
download | wireguard-linux-b6cfe2287df6e26d685af8a8a96ed1bf87bdde28.tar.xz wireguard-linux-b6cfe2287df6e26d685af8a8a96ed1bf87bdde28.zip |
block: Define bdev_nr_zones() as an inline function
There is no need for bdev_nr_zones() to be an exported function
calculating the number of zones of a block device. Instead, given that
all callers use this helper with a fully initialized block device that
has a gendisk, we can redefine this function as an inline helper in
blkdev.h.
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-3-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions