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)
20 #define cpu_to_be16(n) htons(n)
21 #define be16_to_cpu(n) ntohs(n)
23 typedef unsigned int tid_t;
24 typedef struct journal_s journal_t;
31 unsigned long j_flags;
33 struct buffer_head * j_sb_buffer;
34 struct journal_superblock_s *j_superblock;
39 unsigned long j_first, j_last;
43 unsigned int j_blk_offset;
44 unsigned int j_maxlen;
45 struct inode * j_inode;
46 tid_t j_tail_sequence;
47 tid_t j_transaction_sequence;
49 struct jbd_revoke_table_s *j_revoke;
50 tid_t j_failed_commit;
53 #define J_ASSERT(assert) \
54 do { if (!(assert)) { \
55 printf ("Assertion failure in %s() at %s line %d: " \
57 __FUNCTION__, __FILE__, __LINE__, # assert); \
58 fatal_error(e2fsck_global_ctx, 0); \
61 #define is_journal_abort(x) 0
63 #define BUFFER_TRACE(bh, info) do {} while (0)
65 /* Need this so we can compile with configure --enable-gcc-wall */
66 #ifdef NO_INLINE_FUNCS
70 #endif /* _JFS_COMPAT_H */