Lines Matching refs:irec1

164 	struct xfs_bmbt_irec		*irec1,  in xfs_exchmaps_update_quota()  argument
173 if (xfs_bmap_is_real_extent(irec1)) { in xfs_exchmaps_update_quota()
174 ip1_delta -= irec1->br_blockcount; in xfs_exchmaps_update_quota()
175 ip2_delta += irec1->br_blockcount; in xfs_exchmaps_update_quota()
187 # define xfs_exchmaps_update_quota(tp, xmi, irec1, irec2) ((void)0) argument
282 struct xfs_bmbt_irec *irec1, in xfs_exchmaps_find_mappings() argument
292 for (; xmi_has_more_exchange_work(xmi); xmi_advance(xmi, irec1)) { in xfs_exchmaps_find_mappings()
296 xmi->xmi_blockcount, irec1, &nimaps, in xfs_exchmaps_find_mappings()
301 irec1->br_startblock == DELAYSTARTBLOCK || in xfs_exchmaps_find_mappings()
302 irec1->br_startoff != xmi->xmi_startoff1) { in xfs_exchmaps_find_mappings()
313 if (xfs_exchmaps_can_skip_mapping(xmi, irec1)) { in xfs_exchmaps_find_mappings()
314 trace_xfs_exchmaps_mapping1_skip(xmi->xmi_ip1, irec1); in xfs_exchmaps_find_mappings()
321 irec1->br_blockcount, irec2, &nimaps, in xfs_exchmaps_find_mappings()
342 irec1->br_blockcount = min(irec1->br_blockcount, in xfs_exchmaps_find_mappings()
345 trace_xfs_exchmaps_mapping1(xmi->xmi_ip1, irec1); in xfs_exchmaps_find_mappings()
349 if (irec1->br_startblock != irec2->br_startblock) in xfs_exchmaps_find_mappings()
358 if (irec1->br_state != irec2->br_state) { in xfs_exchmaps_find_mappings()
371 memcpy(&adj->left1, irec1, sizeof(*irec1)); in xfs_exchmaps_find_mappings()
384 struct xfs_bmbt_irec *irec1, in xfs_exchmaps_one_step() argument
389 xfs_exchmaps_update_quota(tp, xmi, irec1, irec2); in xfs_exchmaps_one_step()
392 xfs_bmap_unmap_extent(tp, xmi->xmi_ip1, whichfork, irec1); in xfs_exchmaps_one_step()
401 swap(irec1->br_startoff, irec2->br_startoff); in xfs_exchmaps_one_step()
403 xfs_bmap_map_extent(tp, xmi->xmi_ip2, whichfork, irec1); in xfs_exchmaps_one_step()
409 xfs_exchmaps_update_size(tp, xmi->xmi_ip2, irec1, in xfs_exchmaps_one_step()
418 xmi_advance(xmi, irec1); in xfs_exchmaps_one_step()
579 struct xfs_bmbt_irec irec1, irec2; in xfs_exchmaps_finish_one() local
588 error = xfs_exchmaps_find_mappings(xmi, &irec1, &irec2, NULL); in xfs_exchmaps_finish_one()
593 xfs_exchmaps_one_step(tp, xmi, &irec1, &irec2); in xfs_exchmaps_finish_one()
1035 struct xfs_bmbt_irec irec1, irec2; in xfs_exchmaps_estimate() local
1063 error = xfs_exchmaps_find_mappings(xmi, &irec1, &irec2, &adj); in xfs_exchmaps_estimate()
1070 if (xfs_bmap_is_real_extent(&irec1)) in xfs_exchmaps_estimate()
1071 ip1_blocks += irec1.br_blockcount; in xfs_exchmaps_estimate()
1077 error = xmi_next(req->ip1, bmap_flags, &irec1, &adj.right1); in xfs_exchmaps_estimate()
1087 &adj.left1, &irec1, &irec2, &adj.right1); in xfs_exchmaps_estimate()
1090 &adj.left2, &irec2, &irec1, &adj.right2); in xfs_exchmaps_estimate()
1093 if (xmi_can_merge(&adj.left2, &irec1)) in xfs_exchmaps_estimate()
1094 adj.left2.br_blockcount += irec1.br_blockcount; in xfs_exchmaps_estimate()
1096 memcpy(&adj.left2, &irec1, sizeof(irec1)); in xfs_exchmaps_estimate()
1103 xmi_advance(xmi, &irec1); in xfs_exchmaps_estimate()