aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2024-06-21 12:15:06 +0900
committerJens Axboe <[email protected]>2024-06-21 08:26:36 -0600
commitcaaf7101c01a91a882d3da2f566579dda692367d (patch)
tree5ebbd2c4930b2697964c487e7dbd562b4709e0b8 /lib/memory-notifier-error-inject.c
parentb6cfe2287df6e26d685af8a8a96ed1bf87bdde28 (diff)
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 <[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