Searched refs:alloc_unit (Results 1 – 4 of 4) sorted by relevance
| /linux/fs/xfs/ |
| H A D | xfs_exchrange.c | 342 unsigned int alloc_unit) in xfs_exchange_range_checks() 348 uint64_t allocmask = alloc_unit - 1; in xfs_exchange_range_checks() 385 if (!IS_ALIGNED(fxr->file1_offset, alloc_unit) || in xfs_exchange_range_checks() 386 !IS_ALIGNED(fxr->file2_offset, alloc_unit)) in xfs_exchange_range_checks() 420 blen = ALIGN(size1, alloc_unit) - fxr->file1_offset; in xfs_exchange_range_checks() 422 blen = ALIGN(size2, alloc_unit) - fxr->file2_offset; in xfs_exchange_range_checks() 423 else if (!IS_ALIGNED(fxr->length, alloc_unit)) in xfs_exchange_range_checks() 483 unsigned int alloc_unit) in xfs_exchange_range_prep() 491 error = xfs_exchange_range_checks(fxr, alloc_unit); in xfs_exchange_range_prep() 552 unsigned int alloc_unit) in xfs_exchrange_check_rtalign() 339 xfs_exchange_range_checks(struct xfs_exchrange * fxr,unsigned int alloc_unit) xfs_exchange_range_checks() argument 456 xfs_exchange_range_prep(struct xfs_exchrange * fxr,unsigned int alloc_unit) xfs_exchange_range_prep() argument 529 xfs_exchrange_check_rtalign(const struct xfs_exchrange * fxr,struct xfs_inode * ip1,struct xfs_inode * ip2,unsigned int alloc_unit) xfs_exchrange_check_rtalign() argument 596 unsigned int alloc_unit = xfs_inode_alloc_unitsize(ip2); xfs_exchrange_prep() local [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 | 1205 int alloc_unit) in alloc_balloon_pages() argument 1210 for (i = 0; i < num_pages / alloc_unit; i++) { in alloc_balloon_pages() 1213 return i * alloc_unit; in alloc_balloon_pages() 1221 get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages() 1224 return i * alloc_unit; in alloc_balloon_pages() 1226 dm->num_pages_ballooned += alloc_unit; in alloc_balloon_pages() 1227 mod_node_page_state(page_pgdat(pg), NR_BALLOON_PAGES, alloc_unit); in alloc_balloon_pages() 1234 if (alloc_unit != 1) in alloc_balloon_pages() 1235 split_page(pg, get_order(alloc_unit << PAGE_SHIFT)); in alloc_balloon_pages() 1238 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()
|