Lines Matching refs:tp
46 xfs_trans_add_item(xfs_trans_t *tp, xfs_log_item_t *lip) in xfs_trans_add_item() argument
56 if (tp->t_items_free == 0) { in xfs_trans_add_item()
73 licp->lic_next = tp->t_items.lic_next; in xfs_trans_add_item()
74 tp->t_items.lic_next = licp; in xfs_trans_add_item()
75 tp->t_items_free = XFS_LIC_NUM_SLOTS - 1; in xfs_trans_add_item()
89 lip->li_mountp = tp->t_mountp; in xfs_trans_add_item()
90 lip->li_ailp = tp->t_mountp->m_ail; in xfs_trans_add_item()
98 licp = &tp->t_items; in xfs_trans_add_item()
126 tp->t_items_free--; in xfs_trans_add_item()
131 lip->li_mountp = tp->t_mountp; in xfs_trans_add_item()
132 lip->li_ailp = tp->t_mountp->m_ail; in xfs_trans_add_item()
143 xfs_trans_free_item(xfs_trans_t *tp, xfs_log_item_desc_t *lidp) in xfs_trans_free_item() argument
153 tp->t_items_free++; in xfs_trans_free_item()
167 if (xfs_lic_are_all_free(licp) && (licp != &(tp->t_items))) { in xfs_trans_free_item()
168 licpp = &(tp->t_items.lic_next); in xfs_trans_free_item()
175 tp->t_items_free -= XFS_LIC_NUM_SLOTS; in xfs_trans_free_item()
190 xfs_trans_find_item(xfs_trans_t *tp, xfs_log_item_t *lip) in xfs_trans_find_item() argument
211 xfs_trans_first_item(xfs_trans_t *tp) in xfs_trans_first_item() argument
216 licp = &tp->t_items; in xfs_trans_first_item()
250 xfs_trans_next_item(xfs_trans_t *tp, xfs_log_item_desc_t *lidp) in xfs_trans_next_item() argument
301 xfs_trans_t *tp, in xfs_trans_free_items() argument
309 licp = &tp->t_items; in xfs_trans_free_items()
334 tp->t_items_free = XFS_LIC_NUM_SLOTS; in xfs_trans_free_items()
335 tp->t_items.lic_next = NULL; in xfs_trans_free_items()
347 xfs_trans_unlock_items(xfs_trans_t *tp, xfs_lsn_t commit_lsn) in xfs_trans_unlock_items() argument
355 licp = &tp->t_items; in xfs_trans_unlock_items()
363 licpp = &(tp->t_items.lic_next); in xfs_trans_unlock_items()
388 tp->t_items_free += freed; in xfs_trans_unlock_items()
452 xfs_trans_add_busy(xfs_trans_t *tp, xfs_agnumber_t ag, xfs_extlen_t idx) in xfs_trans_add_busy() argument
462 if (tp->t_busy_free == 0) { in xfs_trans_add_busy()
478 lbcp->lbc_next = tp->t_busy.lbc_next; in xfs_trans_add_busy()
479 tp->t_busy.lbc_next = lbcp; in xfs_trans_add_busy()
480 tp->t_busy_free = XFS_LIC_NUM_SLOTS - 1; in xfs_trans_add_busy()
499 lbcp = &tp->t_busy; in xfs_trans_add_busy()
523 tp->t_busy_free--; in xfs_trans_add_busy()
535 xfs_trans_free_busy(xfs_trans_t *tp) in xfs_trans_free_busy() argument
540 lbcp = tp->t_busy.lbc_next; in xfs_trans_free_busy()
547 XFS_LBC_INIT(&tp->t_busy); in xfs_trans_free_busy()
548 tp->t_busy.lbc_unused = 0; in xfs_trans_free_busy()