Lines Matching defs:trans
1865 struct xlog_recover *trans,
1876 list_splice_init(&trans->r_itemq, &sort_list);
1891 list_splice_init(&sort_list, &trans->r_itemq);
1905 trans, item, pass);
1913 trans, item, pass);
1921 list_splice(&buffer_list, &trans->r_itemq);
1923 list_splice_tail(&item_list, &trans->r_itemq);
1925 list_splice_tail(&inode_buffer_list, &trans->r_itemq);
1927 list_splice_tail(&cancel_list, &trans->r_itemq);
1945 struct xlog_recover *trans,
1953 trace_xfs_log_recover_item_recover(log, trans, item,
1958 item, trans->r_lsn);
1975 struct xlog_recover *trans,
1988 hlist_del_init(&trans->r_list);
1990 error = xlog_recover_reorder_trans(log, trans, pass);
1994 list_for_each_entry_safe(item, next, &trans->r_itemq, ri_list) {
1995 trace_xfs_log_recover_item_recover(log, trans, item, pass);
2008 error = xlog_recover_items_pass2(log, trans,
2026 error = xlog_recover_items_pass2(log, trans,
2032 list_splice_init(&done_list, &trans->r_itemq);
2051 struct xlog_recover *trans,
2063 if (list_empty(&trans->r_itemq)) {
2070 xlog_recover_add_item(&trans->r_itemq);
2071 ptr = (char *)&trans->r_theader +
2078 item = list_entry(trans->r_itemq.prev, struct xlog_recover_item,
2090 trace_xfs_log_recover_item_add_cont(log, trans, item, 0);
2110 struct xlog_recover *trans,
2120 if (list_empty(&trans->r_itemq)) {
2141 xlog_recover_add_item(&trans->r_itemq);
2142 memcpy(&trans->r_theader, dp, len);
2151 item = list_entry(trans->r_itemq.prev, struct xlog_recover_item,
2156 xlog_recover_add_item(&trans->r_itemq);
2157 item = list_entry(trans->r_itemq.prev,
2191 trace_xfs_log_recover_item_add(log, trans, item, 0);
2202 struct xlog_recover *trans)
2207 hlist_del_init(&trans->r_list);
2209 list_for_each_entry_safe(item, n, &trans->r_itemq, ri_list) {
2219 kmem_free(trans);
2223 * On error or completion, trans is freed.
2228 struct xlog_recover *trans,
2244 * Callees must not free the trans structure. We'll decide if we need to
2251 error = xlog_recover_add_to_trans(log, trans, dp, len);
2254 error = xlog_recover_add_to_cont_trans(log, trans, dp, len);
2257 error = xlog_recover_commit_trans(log, trans, pass,
2265 /* just skip trans */
2277 xlog_recover_free_trans(trans);
2294 struct xlog_recover *trans;
2300 hlist_for_each_entry(trans, rhp, r_list) {
2301 if (trans->r_log_tid == tid)
2302 return trans;
2318 trans = kmem_zalloc(sizeof(struct xlog_recover), 0);
2319 trans->r_log_tid = tid;
2320 trans->r_lsn = be64_to_cpu(rhead->h_lsn);
2321 INIT_LIST_HEAD(&trans->r_itemq);
2322 INIT_HLIST_NODE(&trans->r_list);
2323 hlist_add_head(&trans->r_list, rhp);
2343 struct xlog_recover *trans;
2366 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead);
2367 if (!trans) {
2395 if (log->l_recovery_lsn != trans->r_lsn &&
2400 log->l_recovery_lsn = trans->r_lsn;
2403 return xlog_recovery_process_trans(log, trans, dp, len,
3216 struct xlog_recover *trans;
3218 hlist_for_each_entry_safe(trans, tmp, &rhash[i], r_list)
3219 xlog_recover_free_trans(trans);