diff options
Diffstat (limited to 'fs/btrfs/dev-replace.c')
-rw-r--r-- | fs/btrfs/dev-replace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index eea26e1b2fda..fb0a7fa2f70c 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c | |||
@@ -562,6 +562,8 @@ static int btrfs_dev_replace_finishing(struct btrfs_fs_info *fs_info, | |||
562 | if (fs_info->fs_devices->latest_bdev == src_device->bdev) | 562 | if (fs_info->fs_devices->latest_bdev == src_device->bdev) |
563 | fs_info->fs_devices->latest_bdev = tgt_device->bdev; | 563 | fs_info->fs_devices->latest_bdev = tgt_device->bdev; |
564 | list_add(&tgt_device->dev_alloc_list, &fs_info->fs_devices->alloc_list); | 564 | list_add(&tgt_device->dev_alloc_list, &fs_info->fs_devices->alloc_list); |
565 | if (src_device->fs_devices->seeding) | ||
566 | fs_info->fs_devices->rw_devices++; | ||
565 | 567 | ||
566 | /* replace the sysfs entry */ | 568 | /* replace the sysfs entry */ |
567 | btrfs_kobj_rm_device(fs_info, src_device); | 569 | btrfs_kobj_rm_device(fs_info, src_device); |