Home
last modified time | relevance | path

Searched refs:alloc_unit (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/fs/xfs/
Dxfs_exchrange.c352 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
[all …]
Dxfs_file.c48 unsigned int alloc_unit = xfs_inode_alloc_unitsize(ip); in xfs_is_falloc_aligned() local
50 if (!is_power_of_2(alloc_unit)) in xfs_is_falloc_aligned()
51 return isaligned_64(pos, alloc_unit) && in xfs_is_falloc_aligned()
52 isaligned_64(len, alloc_unit); in xfs_is_falloc_aligned()
54 return !((pos | len) & (alloc_unit - 1)); in xfs_is_falloc_aligned()
/linux-6.12.1/drivers/hv/
Dhv_balloon.c1200 int alloc_unit) in alloc_balloon_pages() argument
1205 for (i = 0; i < num_pages / alloc_unit; i++) { in alloc_balloon_pages()
1208 return i * alloc_unit; in alloc_balloon_pages()
1216 get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages()
1219 return i * alloc_unit; in alloc_balloon_pages()
1221 dm->num_pages_ballooned += alloc_unit; in alloc_balloon_pages()
1228 if (alloc_unit != 1) in alloc_balloon_pages()
1229 split_page(pg, get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages()
1232 for (j = 0; j < alloc_unit; j++) { in alloc_balloon_pages()
1240 bl_resp->range_array[i].finfo.page_cnt = alloc_unit; in alloc_balloon_pages()
[all …]
/linux-6.12.1/tools/hv/
Dhv_kvp_daemon.c193 int alloc_unit = sizeof(struct kvp_record) * ENTRIES_PER_BLOCK; in kvp_update_mem_state() local
223 record = realloc(record, alloc_unit * num_blocks); in kvp_update_mem_state()
248 int alloc_unit = sizeof(struct kvp_record) * ENTRIES_PER_BLOCK; in kvp_file_init() local
268 kvp_file_info[i].records = malloc(alloc_unit); in kvp_file_init()