1 Index: linux-stage/fs/ext4/super.c
2 When ldiskfs run in failover mode whith read-only disk.
3 Part of allocation updates are lost and ldiskfs may fail
4 while mounting this is due to inconsistent state of
5 group-descriptor. Group-descriptor check is added after
7 ===================================================================
8 --- linux-stage/fs/ext4/super.c 2016-11-24 20:50:46.736527130 +0530
9 +++ linux-stage.orig/fs/ext4/super.c 2016-11-24 20:54:14.941779453 +0530
10 @@ -3429,10 +3429,6 @@
14 - if (!ext4_check_descriptors(sb, &first_not_zeroed)) {
15 - ext4_msg(sb, KERN_ERR, "group descriptors corrupted!");
18 if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_FLEX_BG))
19 if (!ext4_fill_flex_info(sb)) {
20 ext4_msg(sb, KERN_ERR,
21 @@ -3609,6 +3605,10 @@
22 sbi->s_journal->j_commit_callback = ext4_journal_commit_callback;
25 + if (!ext4_check_descriptors(sb, &first_not_zeroed)) {
26 + ext4_msg(sb, KERN_ERR, "group descriptors corrupted!");
27 + goto failed_mount_wq;
29 if (test_opt(sb, NOBH)) {
30 if (!(test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_WRITEBACK_DATA)) {
31 ext4_msg(sb, KERN_WARNING, "Ignoring nobh option - "