.. | .. |
---|
16 | 16 | void xfs_trans_init(struct xfs_mount *); |
---|
17 | 17 | void xfs_trans_add_item(struct xfs_trans *, struct xfs_log_item *); |
---|
18 | 18 | void xfs_trans_del_item(struct xfs_log_item *); |
---|
19 | | -void xfs_trans_free_items(struct xfs_trans *tp, xfs_lsn_t commit_lsn, |
---|
20 | | - bool abort); |
---|
21 | 19 | void xfs_trans_unreserve_and_mod_sb(struct xfs_trans *tp); |
---|
22 | 20 | |
---|
23 | 21 | void xfs_trans_committed_bulk(struct xfs_ail *ailp, struct xfs_log_vec *lv, |
---|
24 | | - xfs_lsn_t commit_lsn, int aborted); |
---|
| 22 | + xfs_lsn_t commit_lsn, bool aborted); |
---|
25 | 23 | /* |
---|
26 | 24 | * AIL traversal cursor. |
---|
27 | 25 | * |
---|
.. | .. |
---|
93 | 91 | xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn); |
---|
94 | 92 | } |
---|
95 | 93 | |
---|
96 | | -bool xfs_ail_delete_one(struct xfs_ail *ailp, struct xfs_log_item *lip); |
---|
97 | | -void xfs_trans_ail_delete(struct xfs_ail *ailp, struct xfs_log_item *lip, |
---|
98 | | - int shutdown_type) __releases(ailp->ail_lock); |
---|
| 94 | +void xfs_trans_ail_insert(struct xfs_ail *ailp, struct xfs_log_item *lip, |
---|
| 95 | + xfs_lsn_t lsn); |
---|
99 | 96 | |
---|
100 | | -static inline void |
---|
101 | | -xfs_trans_ail_remove( |
---|
102 | | - struct xfs_log_item *lip, |
---|
103 | | - int shutdown_type) |
---|
104 | | -{ |
---|
105 | | - struct xfs_ail *ailp = lip->li_ailp; |
---|
106 | | - |
---|
107 | | - spin_lock(&ailp->ail_lock); |
---|
108 | | - /* xfs_trans_ail_delete() drops the AIL lock */ |
---|
109 | | - if (test_bit(XFS_LI_IN_AIL, &lip->li_flags)) |
---|
110 | | - xfs_trans_ail_delete(ailp, lip, shutdown_type); |
---|
111 | | - else |
---|
112 | | - spin_unlock(&ailp->ail_lock); |
---|
113 | | -} |
---|
| 97 | +xfs_lsn_t xfs_ail_delete_one(struct xfs_ail *ailp, struct xfs_log_item *lip); |
---|
| 98 | +void xfs_ail_update_finish(struct xfs_ail *ailp, xfs_lsn_t old_lsn) |
---|
| 99 | + __releases(ailp->ail_lock); |
---|
| 100 | +void xfs_trans_ail_delete(struct xfs_log_item *lip, int shutdown_type); |
---|
114 | 101 | |
---|
115 | 102 | void xfs_ail_push(struct xfs_ail *, xfs_lsn_t); |
---|
116 | 103 | void xfs_ail_push_all(struct xfs_ail *); |
---|