]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/btrfs/dev-replace.c
Merge tag 'nfs-for-5.6-1' of git://git.linux-nfs.org/projects/anna/linux-nfs
[linux.git] / fs / btrfs / dev-replace.c
index ba4d8f375b3c1cdcbcc64ded7491fa5749503ae6..2ca2a09d0e238e5e006441974820e0b2fa7b0060 100644 (file)
@@ -704,6 +704,7 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info,
 
        /* replace the sysfs entry */
        btrfs_sysfs_rm_device_link(fs_info->fs_devices, src_device);
+       btrfs_sysfs_update_devid(tgt_device);
        btrfs_rm_dev_replace_free_srcdev(src_device);
 
        /* write back the superblocks */