Merge branch 'for-linus-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[muen/linux.git] / fs / btrfs / disk-io.c
index 982c56f7951517fd562f3a1d07f34af5d7e670a0..eb1ee7b6f532b74409a6bb50fdb204cb2c8332a1 100644 (file)
@@ -1798,7 +1798,7 @@ static int btrfs_congested_fn(void *congested_data, int bdi_bits)
        list_for_each_entry_rcu(device, &info->fs_devices->devices, dev_list) {
                if (!device->bdev)
                        continue;
-               bdi = blk_get_backing_dev_info(device->bdev);
+               bdi = device->bdev->bd_bdi;
                if (bdi_congested(bdi, bdi_bits)) {
                        ret = 1;
                        break;