Lines Matching refs:file2_offset

199 		.startoff2		= XFS_B_TO_FSBT(mp, fxr->file2_offset),  in xfs_exchrange_mappings()
341 return remap_verify_area(fxr->file2, fxr->file2_offset, fxr->length, in xfs_exchange_range_verify_area()
372 if (fxr->file1_offset > size1 || fxr->file2_offset > size2) in xfs_exchange_range_checks()
381 size2 - fxr->file2_offset); in xfs_exchange_range_checks()
393 !IS_ALIGNED(fxr->file2_offset, alloc_unit)) in xfs_exchange_range_checks()
398 check_add_overflow(fxr->file2_offset, fxr->length, &tmp)) in xfs_exchange_range_checks()
407 fxr->file2_offset + fxr->length > size2)) in xfs_exchange_range_checks()
416 error = generic_write_check_limits(fxr->file2, fxr->file2_offset, in xfs_exchange_range_checks()
437 else if (fxr->file2_offset + fxr->length == size2) in xfs_exchange_range_checks()
438 blen = ALIGN(size2, alloc_unit) - fxr->file2_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()
458 if (fxr->file2_offset + blen < size2) in xfs_exchange_range_checks()
499 fxr->file2_offset, in xfs_exchange_range_prep()
500 fxr->file2_offset + fxr->length - 1); in xfs_exchange_range_prep()
556 !isaligned_64(fxr->file2_offset, alloc_unit)) in xfs_exchrange_check_rtalign()
561 size2 - fxr->file2_offset); in xfs_exchrange_check_rtalign()
574 else if (fxr->file2_offset + length == size2) in xfs_exchrange_check_rtalign()
575 blen = roundup_64(size2, alloc_unit) - fxr->file2_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()
595 if (fxr->file2_offset + length < size2) in xfs_exchrange_check_rtalign()
655 error = xfs_flush_unmap_range(ip2, fxr->file2_offset, fxr->length); in xfs_exchrange_prep()
675 error = xfs_reflink_cancel_cow_range(ip2, fxr->file2_offset, in xfs_exchrange_prep()
827 fxr.file2_offset = args.file2_offset; in xfs_ioc_exchange_range()
927 fxr.file2_offset = args.file2_offset; in xfs_ioc_commit_range()