Lines Matching refs:irec2

165 	struct xfs_bmbt_irec		*irec2)  in xfs_exchmaps_update_quota()  argument
178 if (xfs_bmap_is_real_extent(irec2)) { in xfs_exchmaps_update_quota()
179 ip1_delta += irec2->br_blockcount; in xfs_exchmaps_update_quota()
180 ip2_delta -= irec2->br_blockcount; in xfs_exchmaps_update_quota()
187 # define xfs_exchmaps_update_quota(tp, xmi, irec1, irec2) ((void)0) argument
283 struct xfs_bmbt_irec *irec2, in xfs_exchmaps_find_mappings() argument
321 irec1->br_blockcount, irec2, &nimaps, in xfs_exchmaps_find_mappings()
326 irec2->br_startblock == DELAYSTARTBLOCK || in xfs_exchmaps_find_mappings()
327 irec2->br_startoff != xmi->xmi_startoff2) { in xfs_exchmaps_find_mappings()
343 irec2->br_blockcount); in xfs_exchmaps_find_mappings()
346 trace_xfs_exchmaps_mapping2(xmi->xmi_ip2, irec2); 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()
372 memcpy(&adj->left2, irec2, sizeof(*irec2)); in xfs_exchmaps_find_mappings()
385 struct xfs_bmbt_irec *irec2) in xfs_exchmaps_one_step() argument
389 xfs_exchmaps_update_quota(tp, xmi, irec1, irec2); in xfs_exchmaps_one_step()
393 xfs_bmap_unmap_extent(tp, xmi->xmi_ip2, whichfork, irec2); in xfs_exchmaps_one_step()
401 swap(irec1->br_startoff, irec2->br_startoff); in xfs_exchmaps_one_step()
402 xfs_bmap_map_extent(tp, xmi->xmi_ip1, whichfork, irec2); in xfs_exchmaps_one_step()
407 xfs_exchmaps_update_size(tp, xmi->xmi_ip1, irec2, 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()
1072 if (xfs_bmap_is_real_extent(&irec2)) in xfs_exchmaps_estimate()
1073 ip2_blocks += irec2.br_blockcount; in xfs_exchmaps_estimate()
1081 error = xmi_next(req->ip2, bmap_flags, &irec2, &adj.right2); 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()
1098 if (xmi_can_merge(&adj.left1, &irec2)) in xfs_exchmaps_estimate()
1099 adj.left1.br_blockcount += irec2.br_blockcount; in xfs_exchmaps_estimate()
1101 memcpy(&adj.left1, &irec2, sizeof(irec2)); in xfs_exchmaps_estimate()