aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/jffs2/super.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c
index ffd8e84b22cc..5f73de586928 100644
--- a/fs/jffs2/super.c
+++ b/fs/jffs2/super.c
@@ -320,6 +320,18 @@ static int __init init_jffs2_fs(void)
320{ 320{
321 int ret; 321 int ret;
322 322
323 /* Paranoia checks for on-medium structures. If we ask GCC
324 to pack them with __attribute__((packed)) then it _also_
325 assumes that they're not aligned -- so it emits crappy
326 code on some architectures. Ideally we want an attribute
327 which means just 'no padding', without the alignment
328 thing. But GCC doesn't have that -- we have to just
329 hope the structs are the right sizes, instead. */
330 BUG_ON(sizeof(struct jffs2_unknown_node) != 12);
331 BUG_ON(sizeof(struct jffs2_raw_dirent) != 40);
332 BUG_ON(sizeof(struct jffs2_raw_inode) != 68);
333 BUG_ON(sizeof(struct jffs2_raw_summary) != 32);
334
323 printk(KERN_INFO "JFFS2 version 2.2." 335 printk(KERN_INFO "JFFS2 version 2.2."
324#ifdef CONFIG_JFFS2_FS_WRITEBUFFER 336#ifdef CONFIG_JFFS2_FS_WRITEBUFFER
325 " (NAND)" 337 " (NAND)"
@@ -327,7 +339,7 @@ static int __init init_jffs2_fs(void)
327#ifdef CONFIG_JFFS2_SUMMARY 339#ifdef CONFIG_JFFS2_SUMMARY
328 " (SUMMARY) " 340 " (SUMMARY) "
329#endif 341#endif
330 " (C) 2001-2003 Red Hat, Inc.\n"); 342 " (C) 2001-2006 Red Hat, Inc.\n");
331 343
332 jffs2_inode_cachep = kmem_cache_create("jffs2_i", 344 jffs2_inode_cachep = kmem_cache_create("jffs2_i",
333 sizeof(struct jffs2_inode_info), 345 sizeof(struct jffs2_inode_info),