btrfs: convert latest_bdev type to btrfs_device and rename
[sfrench/cifs-2.6.git] / fs / btrfs / super.c
index 537d90bf5d844b094baeab7a1c2f2e3590320e9f..e4963da4dd0814342723ecdac1605972116ccb2e 100644 (file)
@@ -1705,7 +1705,7 @@ static struct dentry *btrfs_mount_root(struct file_system_type *fs_type,
                goto error_close_devices;
        }
 
-       bdev = fs_devices->latest_bdev;
+       bdev = fs_devices->latest_dev->bdev;
        s = sget(fs_type, btrfs_test_super, btrfs_set_super, flags | SB_NOSEC,
                 fs_info);
        if (IS_ERR(s)) {