Searched refs:alloc_unit (Results 1 – 4 of 4) sorted by relevance
| /linux/fs/xfs/ |
| H A D | xfs_exchrange.c | 339 unsigned int alloc_unit) in xfs_exchange_range_checks() argument 345 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() argument 464 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 …]
|
| H A D | xfs_file.c | 53 unsigned int alloc_unit = xfs_inode_alloc_unitsize(ip); in xfs_is_falloc_aligned() local 55 if (!is_power_of_2(alloc_unit)) in xfs_is_falloc_aligned() 56 return isaligned_64(pos, alloc_unit) && in xfs_is_falloc_aligned() 57 isaligned_64(len, alloc_unit); in xfs_is_falloc_aligned() 59 return !((pos | len) & (alloc_unit - 1)); in xfs_is_falloc_aligned()
|
| /linux/drivers/hv/ |
| H A D | hv_balloon.c | 1203 int alloc_unit) in alloc_balloon_pages() argument 1208 for (i = 0; i < num_pages / alloc_unit; i++) { in alloc_balloon_pages() 1211 return i * alloc_unit; in alloc_balloon_pages() 1219 get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages() 1222 return i * alloc_unit; in alloc_balloon_pages() 1224 dm->num_pages_ballooned += alloc_unit; in alloc_balloon_pages() 1225 mod_node_page_state(page_pgdat(pg), NR_BALLOON_PAGES, alloc_unit); in alloc_balloon_pages() 1232 if (alloc_unit != 1) in alloc_balloon_pages() 1233 split_page(pg, get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages() 1236 for (j = 0; j < alloc_unit; j++) { in alloc_balloon_pages() [all …]
|
| /linux/tools/hv/ |
| H A D | hv_kvp_daemon.c | 209 int alloc_unit = sizeof(struct kvp_record) * ENTRIES_PER_BLOCK; in kvp_update_mem_state() local 239 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() local 284 kvp_file_info[i].records = malloc(alloc_unit); in kvp_file_init()
|