diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/volumes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 0db165ee4340..a0577352eb6e 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -796,7 +796,8 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices, | |||
796 | fs_devices->rotating = 1; | 796 | fs_devices->rotating = 1; |
797 | 797 | ||
798 | fs_devices->open_devices++; | 798 | fs_devices->open_devices++; |
799 | if (device->writeable && !device->is_tgtdev_for_dev_replace) { | 799 | if (device->writeable && |
800 | device->devid != BTRFS_DEV_REPLACE_DEVID) { | ||
800 | fs_devices->rw_devices++; | 801 | fs_devices->rw_devices++; |
801 | list_add(&device->dev_alloc_list, | 802 | list_add(&device->dev_alloc_list, |
802 | &fs_devices->alloc_list); | 803 | &fs_devices->alloc_list); |