btrfs: pass btrfs_device to btrfs_scratch_superblocks()
[linux-2.6-microblaze.git] / fs / btrfs / dev-replace.c
index 1c02d4d..e24d784 100644 (file)
@@ -998,8 +998,7 @@ error:
        btrfs_sysfs_remove_device(src_device);
        btrfs_sysfs_update_devid(tgt_device);
        if (test_bit(BTRFS_DEV_STATE_WRITEABLE, &src_device->dev_state))
-               btrfs_scratch_superblocks(fs_info, src_device->bdev,
-                                         src_device->name->str);
+               btrfs_scratch_superblocks(fs_info, src_device);
 
        /* write back the superblocks */
        trans = btrfs_start_transaction(root, 0);