aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_trans_priv.h')
-rw-r--r--fs/xfs/xfs_trans_priv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trans_priv.h b/fs/xfs/xfs_trans_priv.h
index 53b7c9b0f8f7..c52def0b441c 100644
--- a/fs/xfs/xfs_trans_priv.h
+++ b/fs/xfs/xfs_trans_priv.h
@@ -25,6 +25,9 @@ struct xfs_trans;
25struct xfs_ail; 25struct xfs_ail;
26struct xfs_log_vec; 26struct xfs_log_vec;
27 27
28
29void xfs_trans_init(struct xfs_mount *);
30int xfs_trans_roll(struct xfs_trans **, struct xfs_inode *);
28void xfs_trans_add_item(struct xfs_trans *, struct xfs_log_item *); 31void xfs_trans_add_item(struct xfs_trans *, struct xfs_log_item *);
29void xfs_trans_del_item(struct xfs_log_item *); 32void xfs_trans_del_item(struct xfs_log_item *);
30void xfs_trans_free_items(struct xfs_trans *tp, xfs_lsn_t commit_lsn, 33void xfs_trans_free_items(struct xfs_trans *tp, xfs_lsn_t commit_lsn,
@@ -83,6 +86,18 @@ void xfs_trans_ail_update_bulk(struct xfs_ail *ailp,
83 struct xfs_ail_cursor *cur, 86 struct xfs_ail_cursor *cur,
84 struct xfs_log_item **log_items, int nr_items, 87 struct xfs_log_item **log_items, int nr_items,
85 xfs_lsn_t lsn) __releases(ailp->xa_lock); 88 xfs_lsn_t lsn) __releases(ailp->xa_lock);
89/*
90 * Return a pointer to the first item in the AIL. If the AIL is empty, then
91 * return NULL.
92 */
93static inline struct xfs_log_item *
94xfs_ail_min(
95 struct xfs_ail *ailp)
96{
97 return list_first_entry_or_null(&ailp->xa_ail, struct xfs_log_item,
98 li_ail);
99}
100
86static inline void 101static inline void
87xfs_trans_ail_update( 102xfs_trans_ail_update(
88 struct xfs_ail *ailp, 103 struct xfs_ail *ailp,