diff options
Diffstat (limited to 'fs/xfs/xfs_trans_priv.h')
-rw-r--r-- | fs/xfs/xfs_trans_priv.h | 15 |
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; | |||
25 | struct xfs_ail; | 25 | struct xfs_ail; |
26 | struct xfs_log_vec; | 26 | struct xfs_log_vec; |
27 | 27 | ||
28 | |||
29 | void xfs_trans_init(struct xfs_mount *); | ||
30 | int xfs_trans_roll(struct xfs_trans **, struct xfs_inode *); | ||
28 | void xfs_trans_add_item(struct xfs_trans *, struct xfs_log_item *); | 31 | void xfs_trans_add_item(struct xfs_trans *, struct xfs_log_item *); |
29 | void xfs_trans_del_item(struct xfs_log_item *); | 32 | void xfs_trans_del_item(struct xfs_log_item *); |
30 | void xfs_trans_free_items(struct xfs_trans *tp, xfs_lsn_t commit_lsn, | 33 | void 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 | */ | ||
93 | static inline struct xfs_log_item * | ||
94 | xfs_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 | |||
86 | static inline void | 101 | static inline void |
87 | xfs_trans_ail_update( | 102 | xfs_trans_ail_update( |
88 | struct xfs_ail *ailp, | 103 | struct xfs_ail *ailp, |