Lines Matching full:blen

358 	uint64_t		blen;  in xfs_exchange_range_checks()  local
436 blen = ALIGN(size1, alloc_unit) - fxr->file1_offset; in xfs_exchange_range_checks()
438 blen = ALIGN(size2, alloc_unit) - fxr->file2_offset; in xfs_exchange_range_checks()
442 blen = fxr->length; 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()
457 blen = fxr->length; in xfs_exchange_range_checks()
458 if (fxr->file2_offset + blen < size2) in xfs_exchange_range_checks()
459 blen &= ~allocmask; in xfs_exchange_range_checks()
461 if (fxr->file1_offset + blen < size1) in xfs_exchange_range_checks()
462 blen &= ~allocmask; in xfs_exchange_range_checks()
464 return blen == fxr->length ? 0 : -EINVAL; in xfs_exchange_range_checks()
548 uint64_t blen; in xfs_exchrange_check_rtalign() local
573 blen = roundup_64(size1, alloc_unit) - fxr->file1_offset; in xfs_exchrange_check_rtalign()
575 blen = roundup_64(size2, alloc_unit) - fxr->file2_offset; in xfs_exchrange_check_rtalign()
579 blen = length; 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()
594 blen = length; in xfs_exchrange_check_rtalign()
596 blen = rounddown_64(blen, alloc_unit); in xfs_exchrange_check_rtalign()
598 if (fxr->file1_offset + blen < size1) in xfs_exchrange_check_rtalign()
599 blen = rounddown_64(blen, alloc_unit); in xfs_exchrange_check_rtalign()
601 return blen == length ? 0 : -EINVAL; in xfs_exchrange_check_rtalign()