diff options
author | 2025-03-19 10:49:16 +0900 | |
---|---|---|
committer | 2025-04-17 11:57:20 +0200 | |
commit | c1a79b1a583654f24b17da81ba868b0064077243 (patch) | |
tree | d89dd9caa58fe94cbcf7a80b30b5d46488604c33 /scripts/lib/kdoc/kdoc_output.py | |
parent | btrfs: tree-checker: adjust error code for header level check (diff) | |
download | linux-rng-c1a79b1a583654f24b17da81ba868b0064077243.tar.xz linux-rng-c1a79b1a583654f24b17da81ba868b0064077243.zip |
block: introduce zone capacity helper
{bdev,disk}_zone_capacity() takes block_device or gendisk and sector position
and returns the zone capacity of the corresponding zone.
With that, move disk_nr_zones() and blk_zone_plug_bio() to consolidate them in
the same #ifdef block.
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions