Btrfs: fix unzeroed members in fs_devices when creating a fs from seed fs
[deliverable/linux.git] / fs / btrfs / volumes.c
index 5700ab03e84bba10a4b5c4920eadced5099a8fc5..50edbbc2e76cd495b3cbbdbee98084936dd366c8 100644 (file)
@@ -1988,6 +1988,9 @@ static int btrfs_prepare_sprout(struct btrfs_root *root)
        fs_devices->seeding = 0;
        fs_devices->num_devices = 0;
        fs_devices->open_devices = 0;
+       fs_devices->missing_devices = 0;
+       fs_devices->num_can_discard = 0;
+       fs_devices->rotating = 0;
        fs_devices->seed = seed_devices;
 
        generate_random_uuid(fs_devices->fsid);
This page took 0.031721 seconds and 5 git commands to generate.