Commit 6d41bb4d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

nfblock: stop using ->queuedata

Instead of setting up the queuedata as well just use one private data
field.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b5fc1e8b
...@@ -61,7 +61,7 @@ struct nfhd_device { ...@@ -61,7 +61,7 @@ struct nfhd_device {
static blk_qc_t nfhd_make_request(struct request_queue *queue, struct bio *bio) static blk_qc_t nfhd_make_request(struct request_queue *queue, struct bio *bio)
{ {
struct nfhd_device *dev = queue->queuedata; struct nfhd_device *dev = bio->bi_disk->private_data;
struct bio_vec bvec; struct bio_vec bvec;
struct bvec_iter iter; struct bvec_iter iter;
int dir, len, shift; int dir, len, shift;
...@@ -122,7 +122,6 @@ static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) ...@@ -122,7 +122,6 @@ static int __init nfhd_init_one(int id, u32 blocks, u32 bsize)
if (dev->queue == NULL) if (dev->queue == NULL)
goto free_dev; goto free_dev;
dev->queue->queuedata = dev;
blk_queue_logical_block_size(dev->queue, bsize); blk_queue_logical_block_size(dev->queue, bsize);
dev->disk = alloc_disk(16); dev->disk = alloc_disk(16);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment