diff options
author | Jan Kara <jack@suse.cz> | 2017-02-02 15:56:53 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-02 16:21:32 +0100 |
commit | efa7c9f97e3ef624e9a398bf69c15f58eea9f0e8 (patch) | |
tree | d6f95674556410547789553ce35f64d2897453aa /fs/xfs/xfs_buf.c | |
parent | block: Make blk_get_backing_dev_info() safe without open bdev (diff) | |
download | linux-efa7c9f97e3ef624e9a398bf69c15f58eea9f0e8.tar.xz 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/xfs/xfs_buf.c')
-rw-r--r-- | fs/xfs/xfs_buf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 7f0a01f7b592..8bbec20aa138 100644 --- a/fs/xfs/xfs_buf.c +++ b/fs/xfs/xfs_buf.c @@ -757,7 +757,7 @@ xfs_buf_readahead_map( int nmaps, const struct xfs_buf_ops *ops) { - if (bdi_read_congested(target->bt_bdi)) + if (bdi_read_congested(target->bt_bdev->bd_bdi)) return; xfs_buf_read_map(target, map, nmaps, @@ -1790,7 +1790,6 @@ xfs_alloc_buftarg( btp->bt_mount = mp; btp->bt_dev = bdev->bd_dev; btp->bt_bdev = bdev; - btp->bt_bdi = blk_get_backing_dev_info(bdev); if (xfs_setsize_buftarg_early(btp, bdev)) goto error; |