Lines Matching refs:tmp_dext
571 * @tmp_dext: the extent that will belong to the original inode
580 mext_calc_swap_extents(struct ext4_extent *tmp_dext,
596 if (orig_off < le32_to_cpu(tmp_dext->ee_block) ||
597 le32_to_cpu(tmp_dext->ee_block) +
598 ext4_ext_get_actual_len(tmp_dext) - 1 < orig_off)
601 dext_old = *tmp_dext;
604 /* When tmp_dext is too large, pick up the target range. */
605 diff = donor_off - le32_to_cpu(tmp_dext->ee_block);
607 ext4_ext_store_pblock(tmp_dext, ext_pblock(tmp_dext) + diff);
608 tmp_dext->ee_block =
609 cpu_to_le32(le32_to_cpu(tmp_dext->ee_block) + diff);
610 tmp_dext->ee_len = cpu_to_le16(le16_to_cpu(tmp_dext->ee_len) - diff);
612 if (max_count < ext4_ext_get_actual_len(tmp_dext))
613 tmp_dext->ee_len = cpu_to_le16(max_count);
619 if (ext4_ext_get_actual_len(tmp_dext) >
621 tmp_dext->ee_len = cpu_to_le16(le16_to_cpu(tmp_oext->ee_len) -
624 tmp_oext->ee_len = cpu_to_le16(ext4_ext_get_actual_len(tmp_dext));
626 copy_extent_status(&oext_old, tmp_dext);
661 struct ext4_extent tmp_dext, tmp_oext;
685 tmp_dext = *dext;
687 *err = mext_calc_swap_extents(&tmp_dext, &tmp_oext, orig_off,
700 } else if (donor_off != le32_to_cpu(tmp_dext.ee_block)) {
705 le32_to_cpu(tmp_dext.ee_block));
712 orig_path, &tmp_dext, &orig_off);
722 dext_alen = ext4_ext_get_actual_len(&tmp_dext);
747 tmp_dext = *dext;
749 *err = mext_calc_swap_extents(&tmp_dext, &tmp_oext, orig_off,