diff options
author | Christoph Hellwig <hch@lst.de> | 2020-06-26 10:01:56 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-01 08:08:20 -0600 |
commit | e556f6ba10f0f3c3484a1597382ceaec1e7bc700 (patch) | |
tree | 118abf6b1784ad653c0a423966d6ea0d1e070b8c /fs/direct-io.c | |
parent | 6b7b181b67aa8177e57732723106a0411570a86d (diff) | |
download | lwn-e556f6ba10f0f3c3484a1597382ceaec1e7bc700.tar.gz lwn-e556f6ba10f0f3c3484a1597382ceaec1e7bc700.zip |
block: remove the bd_queue field from struct block_device
Just use bd_disk->queue instead.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/direct-io.c')
-rw-r--r-- | fs/direct-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/direct-io.c b/fs/direct-io.c index 6d5370eac2a8..183299892465 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -1387,8 +1387,8 @@ ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode, * Attempt to prefetch the pieces we likely need later. */ prefetch(&bdev->bd_disk->part_tbl); - prefetch(bdev->bd_queue); - prefetch((char *)bdev->bd_queue + SMP_CACHE_BYTES); + prefetch(bdev->bd_disk->queue); + prefetch((char *)bdev->bd_disk->queue + SMP_CACHE_BYTES); return do_blockdev_direct_IO(iocb, inode, bdev, iter, get_block, end_io, submit_io, flags); |