[OpenWrt-Devel] [PATCH 1/2] kernel: bump 4.9 to 4.9.116 for 18.06

Koen Vandeputte koen.vandeputte at ncentric.com
Tue Jul 31 07:08:59 EDT 2018


Hi Stijn,

It seems a new helper was introduced in newer kernels:


-- a/fs/ext4/super.c
++ b/fs/ext4/super.c
@@ -3103,14 +3103,8 @@ static ext4_group_t ext4_has_uninit_itab
                 if (!gdp)
                         continue;

-               if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED))
-                       continue;
-               if (group != 0)
+               if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)))
                         break;
-               ext4_error(sb, "Inode table for bg 0 marked as "
-                          "needing zeroing");
-               if (sb_rdonly(sb))        <<<<<<
-                       return ngroups;
         }

         return group;


can be altered to


-- a/fs/ext4/super.c
++ b/fs/ext4/super.c
@@ -3103,14 +3103,8 @@ static ext4_group_t ext4_has_uninit_itab
                 if (!gdp)
                         continue;

-               if (gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED))
-                       continue;
-               if (group != 0)
+               if (!(gdp->bg_flags & cpu_to_le16(EXT4_BG_INODE_ZEROED)))
                         break;
-               ext4_error(sb, "Inode table for bg 0 marked as "
-                          "needing zeroing");
-               if (sb->s_flags & MS_RDONLY) <<<<<<
-                       return ngroups;
         }

         return group;


to make the patch applicable for 4.9 kernels.


Koen

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list