diff options
| author | Naohiro Aota <[email protected]> | 2025-03-19 01:49:16 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-04-17 09:57:20 +0000 |
| commit | c1a79b1a583654f24b17da81ba868b0064077243 (patch) | |
| tree | d89dd9caa58fe94cbcf7a80b30b5d46488604c33 /rust/helpers/helpers.c | |
| parent | btrfs: tree-checker: adjust error code for header level check (diff) | |
| download | kernel-c1a79b1a583654f24b17da81ba868b0064077243.tar.gz kernel-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 <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
