summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-12-28 08:51:41 +0100
committerJens Axboe <axboe@kernel.dk>2024-01-08 16:27:22 +0100
commit4e33b071bb8e8415fb9847249ffcf300fa7d8cac (patch)
tree2efff5aa9f9830017beffe11cdabcd7ce6043e47 /block
parentsd: remove the !ZBC && blk_queue_is_zoned case in sd_read_block_characteristics (diff)
downloadlinux-4e33b071bb8e8415fb9847249ffcf300fa7d8cac.tar.xz
linux-4e33b071bb8e8415fb9847249ffcf300fa7d8cac.zip
block: remove disk_clear_zoned
disk_clear_zoned is unused now that the last warts of the host-aware model support in sd are gone. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Link: https://lore.kernel.org/r/20231228075141.362560-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-zoned.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index c59d44ee6b23..623879d875a4 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -615,24 +615,3 @@ int blk_revalidate_disk_zones(struct gendisk *disk,
return ret;
}
EXPORT_SYMBOL_GPL(blk_revalidate_disk_zones);
-
-void disk_clear_zoned(struct gendisk *disk)
-{
- struct request_queue *q = disk->queue;
-
- blk_mq_freeze_queue(q);
-
- q->limits.zoned = false;
- disk_free_zone_bitmaps(disk);
- blk_queue_flag_clear(QUEUE_FLAG_ZONE_RESETALL, q);
- q->required_elevator_features &= ~ELEVATOR_F_ZBD_SEQ_WRITE;
- disk->nr_zones = 0;
- disk->max_open_zones = 0;
- disk->max_active_zones = 0;
- q->limits.chunk_sectors = 0;
- q->limits.zone_write_granularity = 0;
- q->limits.max_zone_append_sectors = 0;
-
- blk_mq_unfreeze_queue(q);
-}
-EXPORT_SYMBOL_GPL(disk_clear_zoned);