OSDN Git Service

bcache: stop setting ->queuedata
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Jul 2020 08:59:36 +0000 (10:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 13:27:23 +0000 (07:27 -0600)
Nothing in bcache actually uses the ->queuedata field.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c

index 2014016..21aa168 100644 (file)
@@ -876,7 +876,6 @@ static int bcache_device_init(struct bcache_device *d, unsigned int block_size,
                return -ENOMEM;
 
        d->disk->queue                  = q;
-       q->queuedata                    = d;
        q->backing_dev_info->congested_data = d;
        q->limits.max_hw_sectors        = UINT_MAX;
        q->limits.max_sectors           = UINT_MAX;