summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 94a0d186de4c..8482396056ee 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -1832,7 +1832,8 @@ void btrfs_rm_dev_replace_srcdev(struct btrfs_fs_info *fs_info,
fs_devices->num_devices--;
if (srcdev->missing) {
fs_devices->missing_devices--;
- fs_devices->rw_devices++;
+ if (!fs_devices->seeding)
+ fs_devices->rw_devices++;
}
if (srcdev->can_discard)
fs_devices->num_can_discard--;