Lines Matching defs:new_ext
218 * @new_ext: middle of new extent to be inserted
227 struct ext4_extent *start_ext, struct ext4_extent *new_ext,
236 if (start_ext->ee_len && new_ext->ee_len && end_ext->ee_len) {
239 /* start_ext new_ext end_ext
246 /* start_ext new_ext end_ext
259 } else if (start_ext->ee_len && new_ext->ee_len &&
262 /* start_ext new_ext
270 } else if (!start_ext->ee_len && new_ext->ee_len &&
273 /* new_ext end_ext
282 * Set 0 to the extent block if new_ext was
285 if (new_ext->ee_block)
286 eblock = le32_to_cpu(new_ext->ee_block);
300 orig_path, new_ext, 0))
330 * @new_ext: middle of new extent to be inserted
342 struct ext4_extent *new_ext,
362 if (new_ext->ee_len) {
363 o_start[i] = *new_ext;
364 ext4_ext_store_pblock(&o_start[i++], ext_pblock(new_ext));
384 * @new_ext: middle of new extent to be inserted
398 struct ext4_extent *new_ext,
410 (new_ext->ee_len ? 1 : 0);
435 o_end, start_ext, new_ext, end_ext);
439 mext_insert_inside_block(o_start, o_end, start_ext, new_ext,
479 struct ext4_extent new_ext, start_ext, end_ext;
490 new_ext.ee_block = cpu_to_le32(*from);
491 ext4_ext_store_pblock(&new_ext, ext_pblock(dext));
492 new_ext.ee_len = dext->ee_len;
493 new_ext_alen = ext4_ext_get_actual_len(&new_ext);
494 new_ext_end = le32_to_cpu(new_ext.ee_block) + new_ext_alen - 1;
499 * new_ext |--|
502 if (le32_to_cpu(oext->ee_block) < le32_to_cpu(new_ext.ee_block) &&
503 le32_to_cpu(new_ext.ee_block) <
505 start_ext.ee_len = cpu_to_le16(le32_to_cpu(new_ext.ee_block) -
512 * We can merge new_ext into previous extent,
516 &new_ext)) {
523 new_ext.ee_len = 0;
530 * new_ext |-------|
543 * Case: new_ext is smaller than original extent
545 * new_ext |-----------|
563 o_end, &start_ext, &new_ext, &end_ext);