2 * Interface between ext3 and JBD
5 #include <linux/ext3_jbd.h>
7 int __ext3_journal_get_undo_access(const char *where
, handle_t
*handle
,
8 struct buffer_head
*bh
)
10 int err
= journal_get_undo_access(handle
, bh
);
12 ext3_journal_abort_handle(where
, __FUNCTION__
, bh
, handle
,err
);
16 int __ext3_journal_get_write_access(const char *where
, handle_t
*handle
,
17 struct buffer_head
*bh
)
19 int err
= journal_get_write_access(handle
, bh
);
21 ext3_journal_abort_handle(where
, __FUNCTION__
, bh
, handle
,err
);
25 int __ext3_journal_forget(const char *where
, handle_t
*handle
,
26 struct buffer_head
*bh
)
28 int err
= journal_forget(handle
, bh
);
30 ext3_journal_abort_handle(where
, __FUNCTION__
, bh
, handle
,err
);
34 int __ext3_journal_revoke(const char *where
, handle_t
*handle
,
35 unsigned long blocknr
, struct buffer_head
*bh
)
37 int err
= journal_revoke(handle
, blocknr
, bh
);
39 ext3_journal_abort_handle(where
, __FUNCTION__
, bh
, handle
,err
);
43 int __ext3_journal_get_create_access(const char *where
,
44 handle_t
*handle
, struct buffer_head
*bh
)
46 int err
= journal_get_create_access(handle
, bh
);
48 ext3_journal_abort_handle(where
, __FUNCTION__
, bh
, handle
,err
);
52 int __ext3_journal_dirty_metadata(const char *where
,
53 handle_t
*handle
, struct buffer_head
*bh
)
55 int err
= journal_dirty_metadata(handle
, bh
);
57 ext3_journal_abort_handle(where
, __FUNCTION__
, bh
, handle
,err
);