Skip to content

Commit 4e33b07

Browse files
Christoph Hellwigaxboe
authored andcommitted
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 <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 6945a18 commit 4e33b07

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

block/blk-zoned.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -615,24 +615,3 @@ int blk_revalidate_disk_zones(struct gendisk *disk,
615615
return ret;
616616
}
617617
EXPORT_SYMBOL_GPL(blk_revalidate_disk_zones);
618-
619-
void disk_clear_zoned(struct gendisk *disk)
620-
{
621-
struct request_queue *q = disk->queue;
622-
623-
blk_mq_freeze_queue(q);
624-
625-
q->limits.zoned = false;
626-
disk_free_zone_bitmaps(disk);
627-
blk_queue_flag_clear(QUEUE_FLAG_ZONE_RESETALL, q);
628-
q->required_elevator_features &= ~ELEVATOR_F_ZBD_SEQ_WRITE;
629-
disk->nr_zones = 0;
630-
disk->max_open_zones = 0;
631-
disk->max_active_zones = 0;
632-
q->limits.chunk_sectors = 0;
633-
q->limits.zone_write_granularity = 0;
634-
q->limits.max_zone_append_sectors = 0;
635-
636-
blk_mq_unfreeze_queue(q);
637-
}
638-
EXPORT_SYMBOL_GPL(disk_clear_zoned);

include/linux/blkdev.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ typedef int (*report_zones_cb)(struct blk_zone *zone, unsigned int idx,
318318
void *data);
319319

320320
void disk_set_zoned(struct gendisk *disk);
321-
void disk_clear_zoned(struct gendisk *disk);
322321

323322
#define BLK_ALL_ZONES ((unsigned int)-1)
324323
int blkdev_report_zones(struct block_device *bdev, sector_t sector,

0 commit comments

Comments
 (0)