diff options
| author | Damien Le Moal <dlemoal@kernel.org> | 2025-11-05 00:22:48 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-05 18:07:21 +0300 |
| commit | ad3c1188b401cbc0533515ba2d45396b4fa320e1 (patch) | |
| tree | 7ee61aadad210590e096209f55585e97aceb6813 /include/linux/platform_data | |
| parent | 1efbbc641ef7d673059cded789b9c8a743c17c9a (diff) | |
| download | linux-ad3c1188b401cbc0533515ba2d45396b4fa320e1.tar.xz | |
btrfs: use blkdev_report_zones_cached()
Modify btrfs_get_dev_zones() and btrfs_sb_log_location_bdev() to replace
the call to blkdev_report_zones() with blkdev_report_zones_cached() to
speed-up mount operations. btrfs_get_dev_zone_info() is also modified to
take into account the BLK_ZONE_COND_ACTIVE condition, which is
equivalent to either BLK_ZONE_COND_IMP_OPEN, BLK_ZONE_COND_EXP_OPEN or
BLK_ZONE_COND_CLOSED.
With this change, mounting a freshly formatted large capacity (30 TB)
SMR HDD completes under 100ms compared to over 1.8s before.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Acked-by: David Sterba <dsterba@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions
