Searched refs:alloc_unit (Results 1 – 3 of 3) sorted by relevance
339 unsigned int alloc_unit) in xfs_exchange_range_checks() argument345 uint64_t allocmask = alloc_unit - 1; in xfs_exchange_range_checks()382 if (!IS_ALIGNED(fxr->file1_offset, alloc_unit) || in xfs_exchange_range_checks()383 !IS_ALIGNED(fxr->file2_offset, alloc_unit)) in xfs_exchange_range_checks()417 blen = ALIGN(size1, alloc_unit) - fxr->file1_offset; in xfs_exchange_range_checks()419 blen = ALIGN(size2, alloc_unit) - fxr->file2_offset; in xfs_exchange_range_checks()420 else if (!IS_ALIGNED(fxr->length, alloc_unit)) in xfs_exchange_range_checks()456 unsigned int alloc_unit) in xfs_exchange_range_prep() argument464 error = xfs_exchange_range_checks(fxr, alloc_unit); in xfs_exchange_range_prep()526 unsigned int alloc_unit) in xfs_exchrange_check_rtalign() argument[all …]
52 unsigned int alloc_unit = xfs_inode_alloc_unitsize(ip); in xfs_is_falloc_aligned() local54 if (!is_power_of_2(alloc_unit)) in xfs_is_falloc_aligned()55 return isaligned_64(pos, alloc_unit) && in xfs_is_falloc_aligned()56 isaligned_64(len, alloc_unit); in xfs_is_falloc_aligned()58 return !((pos | len) & (alloc_unit - 1)); in xfs_is_falloc_aligned()
209 int alloc_unit = sizeof(struct kvp_record) * ENTRIES_PER_BLOCK; in kvp_update_mem_state() local239 record = realloc(record, alloc_unit * num_blocks); in kvp_update_mem_state()264 int alloc_unit = sizeof(struct kvp_record) * ENTRIES_PER_BLOCK; in kvp_file_init() local284 kvp_file_info[i].records = malloc(alloc_unit); in kvp_file_init()