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()
3212 struct xlog_recover *trans, in xlog_recover_commit_pass1() argument
3215 trace_xfs_log_recover_item_recover(log, trans, item, XLOG_RECOVER_PASS1); in xlog_recover_commit_pass1()
3240 struct xlog_recover *trans, in xlog_recover_commit_pass2() argument
3244 trace_xfs_log_recover_item_recover(log, trans, item, XLOG_RECOVER_PASS2); in xlog_recover_commit_pass2()
3249 trans->r_lsn); in xlog_recover_commit_pass2()
3252 trans->r_lsn); in xlog_recover_commit_pass2()
3254 return xlog_recover_efi_pass2(log, item, trans->r_lsn); in xlog_recover_commit_pass2()
3259 trans->r_lsn); in xlog_recover_commit_pass2()
3276 struct xlog_recover *trans, in xlog_recover_items_pass2() argument
3284 error = xlog_recover_commit_pass2(log, trans, in xlog_recover_items_pass2()
3302 struct xlog_recover *trans, in xlog_recover_commit_trans() argument
3316 hlist_del(&trans->r_list); in xlog_recover_commit_trans()
3318 error = xlog_recover_reorder_trans(log, trans, pass); in xlog_recover_commit_trans()
3322 list_for_each_entry_safe(item, next, &trans->r_itemq, ri_list) { in xlog_recover_commit_trans()
3325 error = xlog_recover_commit_pass1(log, trans, item); in xlog_recover_commit_trans()
3332 error = xlog_recover_items_pass2(log, trans, in xlog_recover_commit_trans()
3350 error = xlog_recover_items_pass2(log, trans, in xlog_recover_commit_trans()
3356 list_splice_init(&done_list, &trans->r_itemq); in xlog_recover_commit_trans()
3376 struct xlog_recover *trans, in xlog_recover_add_to_cont_trans() argument
3384 if (list_empty(&trans->r_itemq)) { in xlog_recover_add_to_cont_trans()
3386 xlog_recover_add_item(&trans->r_itemq); in xlog_recover_add_to_cont_trans()
3387 ptr = (xfs_caddr_t) &trans->r_theader + in xlog_recover_add_to_cont_trans()
3393 item = list_entry(trans->r_itemq.prev, xlog_recover_item_t, ri_list); in xlog_recover_add_to_cont_trans()
3402 trace_xfs_log_recover_item_add_cont(log, trans, item, 0); in xlog_recover_add_to_cont_trans()
3422 struct xlog_recover *trans, in xlog_recover_add_to_trans() argument
3432 if (list_empty(&trans->r_itemq)) { in xlog_recover_add_to_trans()
3441 xlog_recover_add_item(&trans->r_itemq); in xlog_recover_add_to_trans()
3442 memcpy(&trans->r_theader, dp, len); in xlog_recover_add_to_trans()
3451 item = list_entry(trans->r_itemq.prev, xlog_recover_item_t, ri_list); in xlog_recover_add_to_trans()
3455 xlog_recover_add_item(&trans->r_itemq); in xlog_recover_add_to_trans()
3456 item = list_entry(trans->r_itemq.prev, in xlog_recover_add_to_trans()
3481 trace_xfs_log_recover_item_add(log, trans, item, 0); in xlog_recover_add_to_trans()
3492 struct xlog_recover *trans) in xlog_recover_free_trans() argument
3497 list_for_each_entry_safe(item, n, &trans->r_itemq, ri_list) { in xlog_recover_free_trans()
3507 kmem_free(trans); in xlog_recover_free_trans()
3516 struct xlog_recover *trans, in xlog_recovery_process_trans() argument
3538 error = xlog_recover_add_to_trans(log, trans, dp, len); in xlog_recovery_process_trans()
3541 error = xlog_recover_add_to_cont_trans(log, trans, dp, len); in xlog_recovery_process_trans()
3544 error = xlog_recover_commit_trans(log, trans, pass); in xlog_recovery_process_trans()
3563 xlog_recover_free_trans(trans); in xlog_recovery_process_trans()
3580 struct xlog_recover *trans; in xlog_recover_ophdr_to_trans() local
3586 hlist_for_each_entry(trans, rhp, r_list) { in xlog_recover_ophdr_to_trans()
3587 if (trans->r_log_tid == tid) in xlog_recover_ophdr_to_trans()
3588 return trans; in xlog_recover_ophdr_to_trans()
3604 trans = kmem_zalloc(sizeof(struct xlog_recover), KM_SLEEP); in xlog_recover_ophdr_to_trans()
3605 trans->r_log_tid = tid; in xlog_recover_ophdr_to_trans()
3606 trans->r_lsn = be64_to_cpu(rhead->h_lsn); in xlog_recover_ophdr_to_trans()
3607 INIT_LIST_HEAD(&trans->r_itemq); in xlog_recover_ophdr_to_trans()
3608 INIT_HLIST_NODE(&trans->r_list); in xlog_recover_ophdr_to_trans()
3609 hlist_add_head(&trans->r_list, rhp); in xlog_recover_ophdr_to_trans()
3628 struct xlog_recover *trans; in xlog_recover_process_ophdr() local
3650 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead); in xlog_recover_process_ophdr()
3651 if (!trans) { in xlog_recover_process_ophdr()
3656 return xlog_recovery_process_trans(log, trans, dp, len, in xlog_recover_process_ophdr()