]> git.hungrycats.org Git - linux/commitdiff
zygo: btrfs: set super_num_devices
authorZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 23 Apr 2019 21:25:03 +0000 (17:25 -0400)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Sat, 14 Dec 2019 04:53:01 +0000 (23:53 -0500)
(cherry picked from commit ac5c7d500c60c460ebc659bb794c2b46c1a31497)
(cherry picked from commit 253cbcb7e19750240362a156c517b6213b958d4d)
(cherry picked from commit 8fa40c4f82c637969b2bac80ef5c524017ce054e)
(cherry picked from commit edf2d8af02e7fb727b466e1018b5c5d2fc48f5a0)
(cherry picked from commit 62f701457f2a1f4cad83353cde134caefbb1a354)

fs/btrfs/volumes.c

index a6d3f08bfff37bae0676ee7f0a12892dddfb48c0..ae09ad3a137af363f5b393911a09aff32263385b 100644 (file)
@@ -7040,8 +7040,7 @@ int btrfs_read_chunk_tree(struct btrfs_fs_info *fs_info)
           "super_num_devices %llu mismatch with num_devices %llu found here",
                          btrfs_super_num_devices(fs_info->super_copy),
                          total_dev);
-               ret = -EINVAL;
-               goto error;
+               btrfs_set_super_num_devices(fs_info->super_copy, total_dev);
        }
        if (btrfs_super_total_bytes(fs_info->super_copy) <
            fs_info->fs_devices->total_rw_bytes) {