aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2024-06-21 12:15:05 +0900
committerJens Axboe <[email protected]>2024-06-21 08:26:35 -0600
commitb6cfe2287df6e26d685af8a8a96ed1bf87bdde28 (patch)
tree28cdc450bebff103cce955b9f6ebe958e15f6148 /lib/memory-notifier-error-inject.c
parent4ac9056e4bd787f1ba2001167c5acc2b5a75ddf9 (diff)
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions