diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 74614e3b5ad3..f42e41290124 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -673,6 +673,8 @@ static int __btrfs_close_devices(struct btrfs_fs_devices *fs_devices) | |||
673 | 673 | ||
674 | if (device->can_discard) | 674 | if (device->can_discard) |
675 | fs_devices->num_can_discard--; | 675 | fs_devices->num_can_discard--; |
676 | if (device->missing) | ||
677 | fs_devices->missing_devices--; | ||
676 | 678 | ||
677 | new_device = btrfs_alloc_device(NULL, &device->devid, | 679 | new_device = btrfs_alloc_device(NULL, &device->devid, |
678 | device->uuid); | 680 | device->uuid); |