Lines Matching defs:alloc_unit
342 unsigned int alloc_unit)
348 uint64_t allocmask = alloc_unit - 1;
385 if (!IS_ALIGNED(fxr->file1_offset, alloc_unit) ||
386 !IS_ALIGNED(fxr->file2_offset, alloc_unit))
420 blen = ALIGN(size1, alloc_unit) - fxr->file1_offset;
422 blen = ALIGN(size2, alloc_unit) - fxr->file2_offset;
423 else if (!IS_ALIGNED(fxr->length, alloc_unit))
483 unsigned int alloc_unit)
491 error = xfs_exchange_range_checks(fxr, alloc_unit);
552 unsigned int alloc_unit)
562 if (!isaligned_64(fxr->file1_offset, alloc_unit) ||
563 !isaligned_64(fxr->file2_offset, alloc_unit))
580 blen = roundup_64(size1, alloc_unit) - fxr->file1_offset;
582 blen = roundup_64(size2, alloc_unit) - fxr->file2_offset;
583 else if (!isaligned_64(length, alloc_unit))
598 if (isaligned_64(length, alloc_unit))
603 blen = rounddown_64(blen, alloc_unit);
606 blen = rounddown_64(blen, alloc_unit);
619 unsigned int alloc_unit = xfs_inode_alloc_unitsize(ip2);
629 if (!is_power_of_2(alloc_unit)) {
630 error = xfs_exchrange_check_rtalign(fxr, ip1, ip2, alloc_unit);
638 alloc_unit = mp->m_sb.sb_blocksize;
641 error = xfs_exchange_range_prep(fxr, alloc_unit);