16 typedef e2fsck_t kdev_t;
17 typedef struct journal_s journal_t;
33 struct ext2_inode i_ext2;
38 unsigned long j_flags;
40 struct buffer_head * j_sb_buffer;
41 struct journal_superblock_s *j_superblock;
45 unsigned long j_first, j_last;
48 unsigned int j_blk_offset;
49 unsigned int j_maxlen;
50 struct inode * j_inode;
51 tid_t j_tail_sequence;
52 tid_t j_transaction_sequence;
56 int bmap(struct inode *inode, int block);
57 struct buffer_head *getblk(e2fsck_t ctx, blk_t blocknr, int blocksize);
58 void ll_rw_block(int rw, int dummy, struct buffer_head *bh);
59 void mark_buffer_dirty(struct buffer_head *bh, int dummy);
60 void brelse(struct buffer_head *bh);
61 int buffer_uptodate(struct buffer_head *bh);
62 void wait_on_buffer(struct buffer_head *bh);
63 #define fsync_dev(dev) do {} while(0)
64 #define buffer_req(bh) 1
65 #define do_readahead(journal, start) do {} while(0)
67 extern e2fsck_t e2fsck_global_ctx; /* Try your very best not to use this! */
69 #define J_ASSERT(assert) \
70 do { if (!(assert)) { \
71 printf ("Assertion failure in %s() at %s line %d: " \
73 __FUNCTION__, __FILE__, __LINE__, # assert); \
74 fatal_error(e2fsck_global_ctx, 0); \
77 #endif /* _JFS_COMPAT_H */