Lines Matching refs:ailp
72 void xfs_trans_ail_update_bulk(struct xfs_ail *ailp,
75 xfs_lsn_t lsn) __releases(ailp->ail_lock);
82 struct xfs_ail *ailp) in xfs_ail_min() argument
84 return list_first_entry_or_null(&ailp->ail_head, struct xfs_log_item, in xfs_ail_min()
90 struct xfs_ail *ailp, in xfs_trans_ail_update() argument
92 xfs_lsn_t lsn) __releases(ailp->ail_lock) in xfs_trans_ail_update()
94 xfs_trans_ail_update_bulk(ailp, NULL, &lip, 1, lsn); in xfs_trans_ail_update()
97 void xfs_trans_ail_insert(struct xfs_ail *ailp, struct xfs_log_item *lip,
100 xfs_lsn_t xfs_ail_delete_one(struct xfs_ail *ailp, struct xfs_log_item *lip);
101 void xfs_ail_update_finish(struct xfs_ail *ailp, xfs_lsn_t old_lsn)
102 __releases(ailp->ail_lock);
105 static inline void xfs_ail_push(struct xfs_ail *ailp) in xfs_ail_push() argument
107 wake_up_process(ailp->ail_task); in xfs_ail_push()
110 static inline void xfs_ail_push_all(struct xfs_ail *ailp) in xfs_ail_push_all() argument
112 if (!test_and_set_bit(XFS_AIL_OPSTATE_PUSH_ALL, &ailp->ail_opstate)) in xfs_ail_push_all()
113 xfs_ail_push(ailp); in xfs_ail_push_all()
116 static inline xfs_lsn_t xfs_ail_get_push_target(struct xfs_ail *ailp) in xfs_ail_get_push_target() argument
118 return READ_ONCE(ailp->ail_target); in xfs_ail_get_push_target()
121 void xfs_ail_push_all_sync(struct xfs_ail *ailp);
122 xfs_lsn_t xfs_ail_min_lsn(struct xfs_ail *ailp);
124 struct xfs_log_item * xfs_trans_ail_cursor_first(struct xfs_ail *ailp,
127 struct xfs_log_item * xfs_trans_ail_cursor_last(struct xfs_ail *ailp,
130 struct xfs_log_item * xfs_trans_ail_cursor_next(struct xfs_ail *ailp,
134 void __xfs_ail_assign_tail_lsn(struct xfs_ail *ailp);
138 struct xfs_ail *ailp) in xfs_ail_assign_tail_lsn() argument
141 spin_lock(&ailp->ail_lock); in xfs_ail_assign_tail_lsn()
142 __xfs_ail_assign_tail_lsn(ailp); in xfs_ail_assign_tail_lsn()
143 spin_unlock(&ailp->ail_lock); in xfs_ail_assign_tail_lsn()
149 struct xfs_ail *ailp, in xfs_trans_ail_copy_lsn() argument
154 spin_lock(&ailp->ail_lock); in xfs_trans_ail_copy_lsn()
156 spin_unlock(&ailp->ail_lock); in xfs_trans_ail_copy_lsn()
161 struct xfs_ail *ailp, in xfs_trans_ail_copy_lsn() argument