firmware/br-ext-chip-goke/board/gk7205v200/kernel/patches/00_fs-jffs2-super.c.patch

48 lines
1.2 KiB
Diff

--- linux-4.9.37/fs/jffs2/super.c 2017-07-12 16:42:41.000000000 +0300
+++ linux-4.9.y/fs/jffs2/super.c 2021-06-07 13:01:34.000000000 +0300
@@ -372,14 +372,41 @@
BUILD_BUG_ON(sizeof(struct jffs2_raw_inode) != 68);
BUILD_BUG_ON(sizeof(struct jffs2_raw_summary) != 32);
- pr_info("version 2.2."
+ pr_info("version 2.2"
#ifdef CONFIG_JFFS2_FS_WRITEBUFFER
" (NAND)"
#endif
#ifdef CONFIG_JFFS2_SUMMARY
- " (SUMMARY) "
+ " (SUMMARY)"
#endif
- " © 2001-2006 Red Hat, Inc.\n");
+#ifdef CONFIG_JFFS2_ZLIB
+ " (ZLIB)"
+#endif
+#ifdef CONFIG_JFFS2_LZO
+ " (LZO)"
+#endif
+#ifdef CONFIG_JFFS2_LZMA
+ " (LZMA)"
+#endif
+#ifdef CONFIG_JFFS2_RTIME
+ " (RTIME)"
+#endif
+#ifdef CONFIG_JFFS2_RUBIN
+ " (RUBIN)"
+#endif
+#ifdef CONFIG_JFFS2_CMODE_NONE
+ " (CMODE_NONE)"
+#endif
+#ifdef CONFIG_JFFS2_CMODE_PRIORITY
+ " (CMODE_PRIORITY)"
+#endif
+#ifdef CONFIG_JFFS2_CMODE_SIZE
+ " (CMODE_SIZE)"
+#endif
+#ifdef CONFIG_JFFS2_CMODE_FAVOURLZO
+ " (CMODE_FAVOURLZO)"
+#endif
+ " (c) 2001-2006 Red Hat, Inc.\n");
jffs2_inode_cachep = kmem_cache_create("jffs2_i",
sizeof(struct jffs2_inode_info),