Lines Matching defs:trans

1845 	struct xlog_recover	*trans,
1856 list_splice_init(&trans->r_itemq, &sort_list);
1871 list_splice_init(&sort_list, &trans->r_itemq);
1885 trans, item, pass);
1893 trans, item, pass);
1901 list_splice(&buffer_list, &trans->r_itemq);
1903 list_splice_tail(&item_list, &trans->r_itemq);
1905 list_splice_tail(&inode_buffer_list, &trans->r_itemq);
1907 list_splice_tail(&cancel_list, &trans->r_itemq);
1925 struct xlog_recover *trans,
1933 trace_xfs_log_recover_item_recover(log, trans, item,
1938 item, trans->r_lsn);
1955 struct xlog_recover *trans,
1968 hlist_del_init(&trans->r_list);
1970 error = xlog_recover_reorder_trans(log, trans, pass);
1974 list_for_each_entry_safe(item, next, &trans->r_itemq, ri_list) {
1975 trace_xfs_log_recover_item_recover(log, trans, item, pass);
1988 error = xlog_recover_items_pass2(log, trans,
2006 error = xlog_recover_items_pass2(log, trans,
2012 list_splice_init(&done_list, &trans->r_itemq);
2031 struct xlog_recover *trans,
2043 if (list_empty(&trans->r_itemq)) {
2050 xlog_recover_add_item(&trans->r_itemq);
2051 ptr = (char *)&trans->r_theader +
2058 item = list_entry(trans->r_itemq.prev, struct xlog_recover_item,
2070 trace_xfs_log_recover_item_add_cont(log, trans, item, 0);
2090 struct xlog_recover *trans,
2100 if (list_empty(&trans->r_itemq)) {
2121 xlog_recover_add_item(&trans->r_itemq);
2122 memcpy(&trans->r_theader, dp, len);
2131 item = list_entry(trans->r_itemq.prev, struct xlog_recover_item,
2136 xlog_recover_add_item(&trans->r_itemq);
2137 item = list_entry(trans->r_itemq.prev,
2171 trace_xfs_log_recover_item_add(log, trans, item, 0);
2182 struct xlog_recover *trans)
2187 hlist_del_init(&trans->r_list);
2189 list_for_each_entry_safe(item, n, &trans->r_itemq, ri_list) {
2199 kmem_free(trans);
2203 * On error or completion, trans is freed.
2208 struct xlog_recover *trans,
2224 * Callees must not free the trans structure. We'll decide if we need to
2231 error = xlog_recover_add_to_trans(log, trans, dp, len);
2234 error = xlog_recover_add_to_cont_trans(log, trans, dp, len);
2237 error = xlog_recover_commit_trans(log, trans, pass,
2245 /* just skip trans */
2257 xlog_recover_free_trans(trans);
2274 struct xlog_recover *trans;
2280 hlist_for_each_entry(trans, rhp, r_list) {
2281 if (trans->r_log_tid == tid)
2282 return trans;
2298 trans = kmem_zalloc(sizeof(struct xlog_recover), 0);
2299 trans->r_log_tid = tid;
2300 trans->r_lsn = be64_to_cpu(rhead->h_lsn);
2301 INIT_LIST_HEAD(&trans->r_itemq);
2302 INIT_HLIST_NODE(&trans->r_list);
2303 hlist_add_head(&trans->r_list, rhp);
2323 struct xlog_recover *trans;
2346 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead);
2347 if (!trans) {
2375 if (log->l_recovery_lsn != trans->r_lsn &&
2380 log->l_recovery_lsn = trans->r_lsn;
2383 return xlog_recovery_process_trans(log, trans, dp, len,
3205 struct xlog_recover *trans;
3207 hlist_for_each_entry_safe(trans, tmp, &rhash[i], r_list)
3208 xlog_recover_free_trans(trans);