projects/linux·commit 2aed3484

[PATCH] jbd: use BUILD_BUG_ON in journal init

2aed3484 · Alexey Dobriyan <[email protected]> · 2006-09-27 01:49:28 -07:00

Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: Stephen Tweedie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
2aed3484695ecb03f1395bb62f1099e8b0826124
Parents
ae6ddcc5

Changes

1 files changed · +1 −7

FileStatusAddDelContent
fs/jbd/journal.cmodified+1−7View file

fs/jbd/journal.c

View file
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c
index 87c5a6d..2613fca 100644
--- a/fs/jbd/journal.c
+++ b/fs/jbd/journal.c
@@ -2047,13 +2047,7 @@ static int __init journal_init(void)
{
int ret;
-/* Static check for data structure consistency. There's no code
- * invoked --- we'll just get a linker failure if things aren't right.
- */
- extern void journal_bad_superblock_size(void);
- if (sizeof(struct journal_superblock_s) != 1024)
- journal_bad_superblock_size();
-
+ BUILD_BUG_ON(sizeof(struct journal_superblock_s) != 1024);
ret = journal_init_caches();
if (ret != 0)