Damien Le Moal b6cfe2287d 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>
2024-06-21 08:26:35 -06:00
..
2024-05-21 13:02:56 -07:00
2024-06-18 09:22:45 -06:00
2024-06-18 09:22:45 -06:00
2024-05-14 17:25:36 -07:00
2024-06-18 09:22:45 -06:00
2023-06-26 12:47:20 -07:00
2024-06-20 15:19:17 -06:00
2023-06-30 11:57:07 -07:00
2024-06-20 15:19:17 -06:00
2024-05-21 13:02:56 -07:00
2024-05-21 13:02:56 -07:00
2024-03-11 11:43:44 -07:00