Btrfs: do not add replace target to the alloc_list
[deliverable/linux.git] / fs / btrfs / volumes.c
index 0db165ee43405fccbcc044c5c56606e145503d92..a0577352eb6e962743adf9712c230604b409627f 100644 (file)
@@ -796,7 +796,8 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
                        fs_devices->rotating = 1;
 
                fs_devices->open_devices++;
-               if (device->writeable && !device->is_tgtdev_for_dev_replace) {
+               if (device->writeable &&
+                   device->devid != BTRFS_DEV_REPLACE_DEVID) {
                        fs_devices->rw_devices++;
                        list_add(&device->dev_alloc_list,
                                 &fs_devices->alloc_list);
This page took 0.025631 seconds and 5 git commands to generate.