Lines Matching refs:trans

1496 	struct xlog_recover	*trans,  in xlog_recover_reorder_trans()  argument
1507 list_splice_init(&trans->r_itemq, &sort_list); in xlog_recover_reorder_trans()
1518 trans, item, pass); in xlog_recover_reorder_trans()
1534 trans, item, pass); in xlog_recover_reorder_trans()
1547 list_splice_init(&sort_list, &trans->r_itemq); in xlog_recover_reorder_trans()
1555 list_splice(&buffer_list, &trans->r_itemq); in xlog_recover_reorder_trans()
1557 list_splice_tail(&inode_list, &trans->r_itemq); in xlog_recover_reorder_trans()
1559 list_splice_tail(&inode_buffer_list, &trans->r_itemq); in xlog_recover_reorder_trans()
1561 list_splice_tail(&cancel_list, &trans->r_itemq); in xlog_recover_reorder_trans()
3262 struct xlog_recover *trans, in xlog_recover_commit_pass1() argument
3265 trace_xfs_log_recover_item_recover(log, trans, item, XLOG_RECOVER_PASS1); in xlog_recover_commit_pass1()
3290 struct xlog_recover *trans, in xlog_recover_commit_pass2() argument
3294 trace_xfs_log_recover_item_recover(log, trans, item, XLOG_RECOVER_PASS2); in xlog_recover_commit_pass2()
3299 trans->r_lsn); in xlog_recover_commit_pass2()
3302 trans->r_lsn); in xlog_recover_commit_pass2()
3304 return xlog_recover_efi_pass2(log, item, trans->r_lsn); in xlog_recover_commit_pass2()
3309 trans->r_lsn); in xlog_recover_commit_pass2()
3326 struct xlog_recover *trans, in xlog_recover_items_pass2() argument
3334 error = xlog_recover_commit_pass2(log, trans, in xlog_recover_items_pass2()
3352 struct xlog_recover *trans, in xlog_recover_commit_trans() argument
3366 hlist_del(&trans->r_list); in xlog_recover_commit_trans()
3368 error = xlog_recover_reorder_trans(log, trans, pass); in xlog_recover_commit_trans()
3372 list_for_each_entry_safe(item, next, &trans->r_itemq, ri_list) { in xlog_recover_commit_trans()
3375 error = xlog_recover_commit_pass1(log, trans, item); in xlog_recover_commit_trans()
3382 error = xlog_recover_items_pass2(log, trans, in xlog_recover_commit_trans()
3400 error = xlog_recover_items_pass2(log, trans, in xlog_recover_commit_trans()
3406 list_splice_init(&done_list, &trans->r_itemq); in xlog_recover_commit_trans()
3426 struct xlog_recover *trans, in xlog_recover_add_to_cont_trans() argument
3438 if (list_empty(&trans->r_itemq)) { in xlog_recover_add_to_cont_trans()
3445 xlog_recover_add_item(&trans->r_itemq); in xlog_recover_add_to_cont_trans()
3446 ptr = (char *)&trans->r_theader + in xlog_recover_add_to_cont_trans()
3453 item = list_entry(trans->r_itemq.prev, xlog_recover_item_t, ri_list); in xlog_recover_add_to_cont_trans()
3462 trace_xfs_log_recover_item_add_cont(log, trans, item, 0); in xlog_recover_add_to_cont_trans()
3482 struct xlog_recover *trans, in xlog_recover_add_to_trans() argument
3492 if (list_empty(&trans->r_itemq)) { in xlog_recover_add_to_trans()
3513 xlog_recover_add_item(&trans->r_itemq); in xlog_recover_add_to_trans()
3514 memcpy(&trans->r_theader, dp, len); in xlog_recover_add_to_trans()
3523 item = list_entry(trans->r_itemq.prev, xlog_recover_item_t, ri_list); in xlog_recover_add_to_trans()
3527 xlog_recover_add_item(&trans->r_itemq); in xlog_recover_add_to_trans()
3528 item = list_entry(trans->r_itemq.prev, in xlog_recover_add_to_trans()
3553 trace_xfs_log_recover_item_add(log, trans, item, 0); in xlog_recover_add_to_trans()
3564 struct xlog_recover *trans) in xlog_recover_free_trans() argument
3569 list_for_each_entry_safe(item, n, &trans->r_itemq, ri_list) { in xlog_recover_free_trans()
3579 kmem_free(trans); in xlog_recover_free_trans()
3588 struct xlog_recover *trans, in xlog_recovery_process_trans() argument
3610 error = xlog_recover_add_to_trans(log, trans, dp, len); in xlog_recovery_process_trans()
3613 error = xlog_recover_add_to_cont_trans(log, trans, dp, len); in xlog_recovery_process_trans()
3616 error = xlog_recover_commit_trans(log, trans, pass); in xlog_recovery_process_trans()
3635 xlog_recover_free_trans(trans); in xlog_recovery_process_trans()
3652 struct xlog_recover *trans; in xlog_recover_ophdr_to_trans() local
3658 hlist_for_each_entry(trans, rhp, r_list) { in xlog_recover_ophdr_to_trans()
3659 if (trans->r_log_tid == tid) in xlog_recover_ophdr_to_trans()
3660 return trans; in xlog_recover_ophdr_to_trans()
3676 trans = kmem_zalloc(sizeof(struct xlog_recover), KM_SLEEP); in xlog_recover_ophdr_to_trans()
3677 trans->r_log_tid = tid; in xlog_recover_ophdr_to_trans()
3678 trans->r_lsn = be64_to_cpu(rhead->h_lsn); in xlog_recover_ophdr_to_trans()
3679 INIT_LIST_HEAD(&trans->r_itemq); in xlog_recover_ophdr_to_trans()
3680 INIT_HLIST_NODE(&trans->r_list); in xlog_recover_ophdr_to_trans()
3681 hlist_add_head(&trans->r_list, rhp); in xlog_recover_ophdr_to_trans()
3700 struct xlog_recover *trans; in xlog_recover_process_ophdr() local
3722 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead); in xlog_recover_process_ophdr()
3723 if (!trans) { in xlog_recover_process_ophdr()
3728 return xlog_recovery_process_trans(log, trans, dp, len, in xlog_recover_process_ophdr()