Lines Matching full:adj
276 * the left records in @adj (if provided) so that the simulation phase can
284 struct xfs_exchmaps_adjacent *adj) in xfs_exchmaps_find_mappings() argument
370 if (adj) { in xfs_exchmaps_find_mappings()
371 memcpy(&adj->left1, irec1, sizeof(*irec1)); in xfs_exchmaps_find_mappings()
372 memcpy(&adj->left2, irec2, sizeof(*irec2)); in xfs_exchmaps_find_mappings()
1036 struct xfs_exchmaps_adjacent adj = ADJACENT_INIT; in xfs_exchmaps_estimate() local
1060 * adj to capture skipped mappings for correct estimation of in xfs_exchmaps_estimate()
1063 error = xfs_exchmaps_find_mappings(xmi, &irec1, &irec2, &adj); in xfs_exchmaps_estimate()
1077 error = xmi_next(req->ip1, bmap_flags, &irec1, &adj.right1); 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()
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()
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()