summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorJan Kara2017-02-02 15:56:53 +0100
committerJens Axboe2017-02-02 16:21:32 +0100
commitefa7c9f97e3ef624e9a398bf69c15f58eea9f0e8 (patch)
treed6f95674556410547789553ce35f64d2897453aa /fs/btrfs/volumes.c
parentblock: Make blk_get_backing_dev_info() safe without open bdev (diff)
downloadkernel-qcow2-linux-efa7c9f97e3ef624e9a398bf69c15f58eea9f0e8.tar.gz
kernel-qcow2-linux-efa7c9f97e3ef624e9a398bf69c15f58eea9f0e8.tar.xz
kernel-qcow2-linux-efa7c9f97e3ef624e9a398bf69c15f58eea9f0e8.zip
block: Get rid of blk_get_backing_dev_info()
blk_get_backing_dev_info() is now a simple dereference. Remove that function and simplify some code around that. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 3c3c69c0eee4..b2e70073a10d 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -366,7 +366,7 @@ static noinline void run_scheduled_bios(struct btrfs_device *device)
*/
blk_start_plug(&plug);
- bdi = blk_get_backing_dev_info(device->bdev);
+ bdi = device->bdev->bd_bdi;
limit = btrfs_async_submit_limit(fs_info);
limit = limit * 2 / 3;