compat-ioctl.c: fix compile with no CONFIG_JBD

The ext3 compat-ioctl translation wants to translate data structures
that <linux/jbd.h> only declared when CONFIG_JBD was enabled.

So make <linux/jbd.h> play nicely even when we don't actually end up
using it.

Acked-by: Andrew Morton <akpm@osdl.org>
Acked-by: Jeffrey Hundstad <jeffrey.hundstad@mnsu.edu>
Acked-by: Zan Lynx <zlynx@acm.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

-17
-17
include/linux/jbd.h
··· 16 #ifndef _LINUX_JBD_H 17 #define _LINUX_JBD_H 18 19 - #if defined(CONFIG_JBD) || defined(CONFIG_JBD_MODULE) || !defined(__KERNEL__) 20 - 21 /* Allow this file to be included directly into e2fsprogs */ 22 #ifndef __KERNEL__ 23 #include "jfs_compat.h" ··· 1081 1082 #endif /* __KERNEL__ */ 1083 1084 - #endif /* CONFIG_JBD || CONFIG_JBD_MODULE || !__KERNEL__ */ 1085 - 1086 - /* 1087 - * Compatibility no-ops which allow the kernel to compile without CONFIG_JBD 1088 - * go here. 1089 - */ 1090 - 1091 - #if defined(__KERNEL__) && !(defined(CONFIG_JBD) || defined(CONFIG_JBD_MODULE)) 1092 - 1093 - #define J_ASSERT(expr) do {} while (0) 1094 - #define J_ASSERT_BH(bh, expr) do {} while (0) 1095 - #define buffer_jbd(bh) 0 1096 - #define journal_buffer_journal_lru(bh) 0 1097 - 1098 - #endif /* defined(__KERNEL__) && !defined(CONFIG_JBD) */ 1099 #endif /* _LINUX_JBD_H */
··· 16 #ifndef _LINUX_JBD_H 17 #define _LINUX_JBD_H 18 19 /* Allow this file to be included directly into e2fsprogs */ 20 #ifndef __KERNEL__ 21 #include "jfs_compat.h" ··· 1083 1084 #endif /* __KERNEL__ */ 1085 1086 #endif /* _LINUX_JBD_H */