Lines Matching refs:file1_offset
198 .startoff1 = XFS_B_TO_FSBT(mp, fxr->file1_offset), in xfs_exchrange_mappings()
336 ret = remap_verify_area(fxr->file1, fxr->file1_offset, fxr->length, in xfs_exchange_range_verify_area()
372 if (fxr->file1_offset > size1 || fxr->file2_offset > size2) in xfs_exchange_range_checks()
380 fxr->length = max_t(int64_t, size1 - fxr->file1_offset, in xfs_exchange_range_checks()
392 if (!IS_ALIGNED(fxr->file1_offset, alloc_unit) || in xfs_exchange_range_checks()
397 if (check_add_overflow(fxr->file1_offset, fxr->length, &tmp) || in xfs_exchange_range_checks()
406 (fxr->file1_offset + fxr->length > size1 || in xfs_exchange_range_checks()
420 error = generic_write_check_limits(fxr->file1, fxr->file1_offset, in xfs_exchange_range_checks()
435 if (fxr->file1_offset + fxr->length == size1) in xfs_exchange_range_checks()
436 blen = ALIGN(size1, alloc_unit) - fxr->file1_offset; in xfs_exchange_range_checks()
446 fxr->file2_offset + blen > fxr->file1_offset && in xfs_exchange_range_checks()
447 fxr->file1_offset + blen > fxr->file2_offset) in xfs_exchange_range_checks()
461 if (fxr->file1_offset + blen < size1) in xfs_exchange_range_checks()
493 fxr->file1_offset, in xfs_exchange_range_prep()
494 fxr->file1_offset + fxr->length - 1); in xfs_exchange_range_prep()
555 if (!isaligned_64(fxr->file1_offset, alloc_unit) || in xfs_exchrange_check_rtalign()
560 length = max_t(int64_t, size1 - fxr->file1_offset, in xfs_exchrange_check_rtalign()
572 if (fxr->file1_offset + length == size1) in xfs_exchrange_check_rtalign()
573 blen = roundup_64(size1, alloc_unit) - fxr->file1_offset; in xfs_exchrange_check_rtalign()
583 fxr->file2_offset + blen > fxr->file1_offset && in xfs_exchrange_check_rtalign()
584 fxr->file1_offset + blen > fxr->file2_offset) in xfs_exchrange_check_rtalign()
598 if (fxr->file1_offset + blen < size1) in xfs_exchrange_check_rtalign()
658 error = xfs_flush_unmap_range(ip1, fxr->file1_offset, fxr->length); in xfs_exchrange_prep()
668 error = xfs_reflink_cancel_cow_range(ip1, fxr->file1_offset, in xfs_exchrange_prep()
826 fxr.file1_offset = args.file1_offset; in xfs_ioc_exchange_range()
926 fxr.file1_offset = args.file1_offset; in xfs_ioc_commit_range()