Whamcloud - gitweb
LU-10897 kernel: kernel upgrade RHEL7.5 [3.10.0-862.2.3.el7]
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / rhel7.4 / ext4-dont-check-before-replay.patch
1 Index: linux-stage/fs/ext4/super.c
2 ===================================================================
3 --- linux-stage.orig/fs/ext4/super.c
4 +++ linux-stage/fs/ext4/super.c
5 @@ -4097,10 +4097,6 @@ static int ext4_fill_super(struct super_
6                         goto failed_mount2;
7                 }
8         }
9 -       if (!ext4_check_descriptors(sb, logical_sb_block, &first_not_zeroed)) {
10 -               ext4_msg(sb, KERN_ERR, "group descriptors corrupted!");
11 -               goto failed_mount2;
12 -       }
13  
14         sbi->s_gdb_count = db_count;
15         get_random_bytes(&sbi->s_next_generation, sizeof(u32));
16 @@ -4222,6 +4218,12 @@ static int ext4_fill_super(struct super_
17         sbi->s_journal->j_commit_callback = ext4_journal_commit_callback;
18  
19  no_journal:
20 +
21 +       if (!ext4_check_descriptors(sb, logical_sb_block, &first_not_zeroed)) {
22 +               ext4_msg(sb, KERN_ERR, "group descriptors corrupted!");
23 +               goto failed_mount_wq;
24 +       }
25 +
26         /*
27          * Get the # of file system overhead blocks from the
28          * superblock if present.