diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-06 09:03:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-06 06:46:26 -0600 |
commit | d86e716aa40643e3eb8c69fab3a198146bf76dd6 (patch) | |
tree | bf6f0ac7be7cb99241a10571094155698ae608e6 /block/blk-mq-debugfs-zoned.c | |
parent | de71973c2951cb2ce4b46560f021f03b15906408 (diff) | |
download | linux-stable-d86e716aa40643e3eb8c69fab3a198146bf76dd6.tar.gz linux-stable-d86e716aa40643e3eb8c69fab3a198146bf76dd6.tar.bz2 linux-stable-d86e716aa40643e3eb8c69fab3a198146bf76dd6.zip |
block: move zone related fields to struct gendisk
Move the zone related fields that are currently stored in
struct request_queue to struct gendisk as these are part of the highlevel
block layer API and are only used for non-passthrough I/O that requires
the gendisk.
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-17-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-debugfs-zoned.c')
-rw-r--r-- | block/blk-mq-debugfs-zoned.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-mq-debugfs-zoned.c b/block/blk-mq-debugfs-zoned.c index 038cb627c868..a77b099c34b7 100644 --- a/block/blk-mq-debugfs-zoned.c +++ b/block/blk-mq-debugfs-zoned.c @@ -11,11 +11,11 @@ int queue_zone_wlock_show(void *data, struct seq_file *m) struct request_queue *q = data; unsigned int i; - if (!q->seq_zones_wlock) + if (!q->disk->seq_zones_wlock) return 0; - for (i = 0; i < q->nr_zones; i++) - if (test_bit(i, q->seq_zones_wlock)) + for (i = 0; i < q->disk->nr_zones; i++) + if (test_bit(i, q->disk->seq_zones_wlock)) seq_printf(m, "%u\n", i); return 0; |