diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-06 09:03:40 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-06 06:46:26 -0600 |
commit | 6b2bd274744e6454ba7bbbe6a09b44866f2f414a (patch) | |
tree | 25350dc7d33c0c01201cae527be6c4b91baf07ca /block/partitions | |
parent | 052e545c9276f97e86368579fda32aa1ac017d51 (diff) | |
download | linux-stable-6b2bd274744e6454ba7bbbe6a09b44866f2f414a.tar.gz linux-stable-6b2bd274744e6454ba7bbbe6a09b44866f2f414a.tar.bz2 linux-stable-6b2bd274744e6454ba7bbbe6a09b44866f2f414a.zip |
block: pass a gendisk to blk_queue_set_zoned
Prepare for storing the zone related field in struct gendisk instead
of struct request_queue.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220706070350.1703384-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions')
-rw-r--r-- | block/partitions/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/core.c b/block/partitions/core.c index 7dc487f5b03c..1a45b1dd6491 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -330,7 +330,7 @@ static struct block_device *add_partition(struct gendisk *disk, int partno, case BLK_ZONED_HA: pr_info("%s: disabling host aware zoned block device support due to partitions\n", disk->disk_name); - blk_queue_set_zoned(disk, BLK_ZONED_NONE); + disk_set_zoned(disk, BLK_ZONED_NONE); break; case BLK_ZONED_NONE: break; |