summaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2025-03-19 10:49:16 +0900
committerDavid Sterba <dsterba@suse.com>2025-04-17 11:57:20 +0200
commitc1a79b1a583654f24b17da81ba868b0064077243 (patch)
treed89dd9caa58fe94cbcf7a80b30b5d46488604c33 /rust/helpers/task.c
parentf1ab0171e9be96fd530329fa54761cff5e09ea95 (diff)
downloadlinux-c1a79b1a583654f24b17da81ba868b0064077243.tar.gz
linux-c1a79b1a583654f24b17da81ba868b0064077243.tar.bz2
linux-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 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions