seed fs devices don't participate as rw_device, so don't increment
rw_devices when the device being handled belongs to a seed fs.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
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--;