Lines Matching refs:alloc_unit

352 	unsigned int		alloc_unit)  in xfs_exchange_range_checks()  argument
356 uint64_t allocmask = alloc_unit - 1; in xfs_exchange_range_checks()
392 if (!IS_ALIGNED(fxr->file1_offset, alloc_unit) || in xfs_exchange_range_checks()
393 !IS_ALIGNED(fxr->file2_offset, alloc_unit)) in xfs_exchange_range_checks()
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()
439 else if (!IS_ALIGNED(fxr->length, alloc_unit)) in xfs_exchange_range_checks()
475 unsigned int alloc_unit) in xfs_exchange_range_prep() argument
483 error = xfs_exchange_range_checks(fxr, alloc_unit); in xfs_exchange_range_prep()
545 unsigned int alloc_unit) in xfs_exchrange_check_rtalign() argument
555 if (!isaligned_64(fxr->file1_offset, alloc_unit) || in xfs_exchrange_check_rtalign()
556 !isaligned_64(fxr->file2_offset, alloc_unit)) in xfs_exchrange_check_rtalign()
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()
576 else if (!isaligned_64(length, alloc_unit)) in xfs_exchrange_check_rtalign()
591 if (isaligned_64(length, alloc_unit)) in xfs_exchrange_check_rtalign()
596 blen = rounddown_64(blen, alloc_unit); in xfs_exchrange_check_rtalign()
599 blen = rounddown_64(blen, alloc_unit); in xfs_exchrange_check_rtalign()
612 unsigned int alloc_unit = xfs_inode_alloc_unitsize(ip2); in xfs_exchrange_prep() local
622 if (!is_power_of_2(alloc_unit)) { in xfs_exchrange_prep()
623 error = xfs_exchrange_check_rtalign(fxr, ip1, ip2, alloc_unit); in xfs_exchrange_prep()
631 alloc_unit = mp->m_sb.sb_blocksize; in xfs_exchrange_prep()
634 error = xfs_exchange_range_prep(fxr, alloc_unit); in xfs_exchrange_prep()