Lines Matching refs:merge
233 struct extent_map *merge = NULL; in try_merge_map() local
250 merge = rb_entry(rb, struct extent_map, rb_node); in try_merge_map()
251 if (rb && mergable_maps(merge, em)) { in try_merge_map()
252 em->start = merge->start; in try_merge_map()
253 em->orig_start = merge->orig_start; in try_merge_map()
254 em->len += merge->len; in try_merge_map()
255 em->block_len += merge->block_len; in try_merge_map()
256 em->block_start = merge->block_start; in try_merge_map()
257 em->mod_len = (em->mod_len + em->mod_start) - merge->mod_start; in try_merge_map()
258 em->mod_start = merge->mod_start; in try_merge_map()
259 em->generation = max(em->generation, merge->generation); in try_merge_map()
261 rb_erase_cached(&merge->rb_node, &tree->map); in try_merge_map()
262 RB_CLEAR_NODE(&merge->rb_node); in try_merge_map()
263 free_extent_map(merge); in try_merge_map()
269 merge = rb_entry(rb, struct extent_map, rb_node); in try_merge_map()
270 if (rb && mergable_maps(em, merge)) { in try_merge_map()
271 em->len += merge->len; in try_merge_map()
272 em->block_len += merge->block_len; in try_merge_map()
273 rb_erase_cached(&merge->rb_node, &tree->map); in try_merge_map()
274 RB_CLEAR_NODE(&merge->rb_node); in try_merge_map()
275 em->mod_len = (merge->mod_start + merge->mod_len) - em->mod_start; in try_merge_map()
276 em->generation = max(em->generation, merge->generation); in try_merge_map()
277 free_extent_map(merge); in try_merge_map()