hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/xfs/xfs_trans_priv.h
....@@ -16,12 +16,10 @@
1616 void xfs_trans_init(struct xfs_mount *);
1717 void xfs_trans_add_item(struct xfs_trans *, struct xfs_log_item *);
1818 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);
2119 void xfs_trans_unreserve_and_mod_sb(struct xfs_trans *tp);
2220
2321 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);
2523 /*
2624 * AIL traversal cursor.
2725 *
....@@ -93,24 +91,13 @@
9391 xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn);
9492 }
9593
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);
9996
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);
114101
115102 void xfs_ail_push(struct xfs_ail *, xfs_lsn_t);
116103 void xfs_ail_push_all(struct xfs_ail *);