From: Zygo Blaxell Date: Tue, 23 Apr 2019 21:25:03 +0000 (-0400) Subject: zygo: btrfs: set super_num_devices X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e29dae18b12dec6d56ed30a9ae3e47cd2f025d33;p=linux zygo: btrfs: set super_num_devices (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) --- diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index a6d3f08bfff3..ae09ad3a137a 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -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) {