Go to the documentation of this file.
33 #if defined(CONFIG_PROC_FS) && (defined(CONFIG_JFS_DEBUG) || defined(CONFIG_JFS_STATISTICS))
35 extern void jfs_proc_init(
void);
36 extern void jfs_proc_clean(
void);
42 #define assert(p) do { \
44 printk(KERN_CRIT "BUG at %s:%d assert(%s)\n", \
45 __FILE__, __LINE__, #p); \
54 #ifdef CONFIG_JFS_DEBUG
55 #define ASSERT(p) assert(p)
58 #define JFS_LOGLEVEL_ERR 1
59 #define JFS_LOGLEVEL_WARN 2
60 #define JFS_LOGLEVEL_DEBUG 3
61 #define JFS_LOGLEVEL_INFO 4
63 extern int jfsloglevel;
68 #define jfs_info(fmt, arg...) do { \
69 if (jfsloglevel >= JFS_LOGLEVEL_INFO) \
70 printk(KERN_INFO fmt "\n", ## arg); \
74 #define jfs_debug(fmt, arg...) do { \
75 if (jfsloglevel >= JFS_LOGLEVEL_DEBUG) \
76 printk(KERN_DEBUG fmt "\n", ## arg); \
80 #define jfs_warn(fmt, arg...) do { \
81 if (jfsloglevel >= JFS_LOGLEVEL_WARN) \
82 printk(KERN_WARNING fmt "\n", ## arg); \
86 #define jfs_err(fmt, arg...) do { \
87 if (jfsloglevel >= JFS_LOGLEVEL_ERR) \
88 printk(KERN_ERR fmt "\n", ## arg); \
96 #define ASSERT(p) do {} while (0)
97 #define jfs_info(fmt, arg...) do {} while (0)
98 #define jfs_debug(fmt, arg...) do {} while (0)
99 #define jfs_warn(fmt, arg...) do {} while (0)
100 #define jfs_err(fmt, arg...) do {} while (0)
107 #ifdef CONFIG_JFS_STATISTICS
113 #define INCREMENT(x) ((x)++)
114 #define DECREMENT(x) ((x)--)
115 #define HIGHWATERMARK(x,y) ((x) = max((x), (y)))
119 #define HIGHWATERMARK(x,y)