diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-09-27 04:49:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:09 -0400 |
commit | 2aed3484695ecb03f1395bb62f1099e8b0826124 (patch) | |
tree | 4d3aed23944293a28d240f83921a6135dac49476 /fs/jbd/journal.c | |
parent | ae6ddcc5f24d6b06ae9231dc128904750a4155e0 (diff) |
[PATCH] jbd: use BUILD_BUG_ON in journal init
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Stephen Tweedie <sct@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jbd/journal.c')
-rw-r--r-- | fs/jbd/journal.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 87c5a6d00805..2613fca92740 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c | |||
@@ -2047,13 +2047,7 @@ static int __init journal_init(void) | |||
2047 | { | 2047 | { |
2048 | int ret; | 2048 | int ret; |
2049 | 2049 | ||
2050 | /* Static check for data structure consistency. There's no code | 2050 | BUILD_BUG_ON(sizeof(struct journal_superblock_s) != 1024); |
2051 | * invoked --- we'll just get a linker failure if things aren't right. | ||
2052 | */ | ||
2053 | extern void journal_bad_superblock_size(void); | ||
2054 | if (sizeof(struct journal_superblock_s) != 1024) | ||
2055 | journal_bad_superblock_size(); | ||
2056 | |||
2057 | 2051 | ||
2058 | ret = journal_init_caches(); | 2052 | ret = journal_init_caches(); |
2059 | if (ret != 0) | 2053 | if (ret != 0) |