aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysv/super.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-10-11 04:22:05 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-11 14:14:23 -0400
commit2ecd05ae68a903761e736e9e0aca40d6ace4319e (patch)
tree4bb0a178362e954191a6e6cee351745cd2dbe685 /fs/sysv/super.c
parentfbab41ccc479b6b0ba15c137af9e0b1c100bff24 (diff)
[PATCH] fs/*: use BUILD_BUG_ON
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: David Howells <dhowells@redhat.com> Cc: Mark Fasheh <mark.fasheh@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/sysv/super.c')
-rw-r--r--fs/sysv/super.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/fs/sysv/super.c b/fs/sysv/super.c
index 350cba5d6803..dc9e7dc07fb7 100644
--- a/fs/sysv/super.c
+++ b/fs/sysv/super.c
@@ -358,16 +358,11 @@ static int sysv_fill_super(struct super_block *sb, void *data, int silent)
358 unsigned long blocknr; 358 unsigned long blocknr;
359 int size = 0, i; 359 int size = 0, i;
360 360
361 if (1024 != sizeof (struct xenix_super_block)) 361 BUILD_BUG_ON(1024 != sizeof (struct xenix_super_block));
362 panic("Xenix FS: bad superblock size"); 362 BUILD_BUG_ON(512 != sizeof (struct sysv4_super_block));
363 if (512 != sizeof (struct sysv4_super_block)) 363 BUILD_BUG_ON(512 != sizeof (struct sysv2_super_block));
364 panic("SystemV FS: bad superblock size"); 364 BUILD_BUG_ON(500 != sizeof (struct coh_super_block));
365 if (512 != sizeof (struct sysv2_super_block)) 365 BUILD_BUG_ON(64 != sizeof (struct sysv_inode));
366 panic("SystemV FS: bad superblock size");
367 if (500 != sizeof (struct coh_super_block))
368 panic("Coherent FS: bad superblock size");
369 if (64 != sizeof (struct sysv_inode))
370 panic("sysv fs: bad inode size");
371 366
372 sbi = kzalloc(sizeof(struct sysv_sb_info), GFP_KERNEL); 367 sbi = kzalloc(sizeof(struct sysv_sb_info), GFP_KERNEL);
373 if (!sbi) 368 if (!sbi)