5 #include "kernel-list.h"
7 #ifdef HAVE_NETINET_IN_H
8 #include <netinet/in.h>
18 #define cpu_to_be32(n) htonl(n)
19 #define be32_to_cpu(n) ntohl(n)
21 typedef unsigned int tid_t;
22 typedef struct journal_s journal_t;
29 unsigned long j_flags;
31 struct buffer_head * j_sb_buffer;
32 struct journal_superblock_s *j_superblock;
37 unsigned long j_first, j_last;
41 unsigned int j_blk_offset;
42 unsigned int j_maxlen;
43 struct inode * j_inode;
44 tid_t j_tail_sequence;
45 tid_t j_transaction_sequence;
47 struct jbd_revoke_table_s *j_revoke;
48 tid_t j_failed_commit;
51 #define J_ASSERT(assert) \
52 do { if (!(assert)) { \
53 printf ("Assertion failure in %s() at %s line %d: " \
55 __FUNCTION__, __FILE__, __LINE__, # assert); \
56 fatal_error(e2fsck_global_ctx, 0); \
59 #define is_journal_abort(x) 0
61 #define BUFFER_TRACE(bh, info) do {} while (0)
63 /* Need this so we can compile with configure --enable-gcc-wall */
64 #ifdef NO_INLINE_FUNCS
68 #endif /* _JFS_COMPAT_H */