Home
last modified time | relevance | path

Searched refs:alloc_hint (Results 1 – 15 of 15) sorted by relevance

/linux/lib/
H A Dsbitmap.c16 sb->alloc_hint = alloc_percpu_gfp(unsigned int, flags); in init_alloc_hint()
17 if (!sb->alloc_hint) in init_alloc_hint()
24 *per_cpu_ptr(sb->alloc_hint, i) = get_random_u32_below(depth); in init_alloc_hint()
34 hint = this_cpu_read(*sb->alloc_hint); in update_alloc_hint_before_get()
37 this_cpu_write(*sb->alloc_hint, hint); in update_alloc_hint_before_get()
50 this_cpu_write(*sb->alloc_hint, 0); in update_alloc_hint_after_get()
56 this_cpu_write(*sb->alloc_hint, hint); in update_alloc_hint_after_get()
64 unsigned int depth, unsigned int alloc_hint, bool wrap) in sbitmap_deferred_clear() argument
82 if (!wrap && alloc_hint) in sbitmap_deferred_clear()
83 word_mask &= ~((1UL << alloc_hint) - 1); in sbitmap_deferred_clear()
[all …]
/linux/fs/xfs/scrub/
H A Dnewbt.c99 xfs_fsblock_t alloc_hint, in xrep_newbt_init_ag() argument
105 xnr->alloc_hint = alloc_hint; in xrep_newbt_init_ag()
254 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, xnr->alloc_hint); in xrep_newbt_validate_ag_alloc_hint()
257 xfs_verify_fsbno(sc->mp, xnr->alloc_hint)) in xrep_newbt_validate_ag_alloc_hint()
260 xnr->alloc_hint = in xrep_newbt_validate_ag_alloc_hint()
292 error = xnr->alloc_vextent(sc, &args, xnr->alloc_hint); in xrep_newbt_alloc_ag_blocks()
295 xnr->alloc_hint); in xrep_newbt_alloc_ag_blocks()
316 xnr->alloc_hint = args.fsbno + args.len; in xrep_newbt_alloc_ag_blocks()
333 if (xfs_verify_fsbno(sc->mp, xnr->alloc_hint)) in xrep_newbt_validate_file_alloc_hint()
[all...]
H A Dnewbt.h36 xfs_fsblock_t alloc_hint);
54 xfs_fsblock_t alloc_hint; member
62 const struct xfs_owner_info *oinfo, xfs_fsblock_t alloc_hint,
H A Drmap_repair.c1269 xfs_fsblock_t alloc_hint) in xrep_rmap_alloc_vextent() argument
1300 return xfs_alloc_vextent_near_bno(args, alloc_hint); in xrep_rmap_alloc_vextent()
/linux/fs/btrfs/
H A Dbtrfs_inode.h598 loff_t actual_len, u64 *alloc_hint);
H A Ddirect-io.c183 u64 alloc_hint; in btrfs_new_extent_direct() local
186 alloc_hint = btrfs_get_extent_allocation_hint(inode, start, len); in btrfs_new_extent_direct()
189 0, alloc_hint, &ins, true, true); in btrfs_new_extent_direct()
H A Dinode.c1034 u64 *alloc_hint) in submit_one_async_extent()
1075 0, *alloc_hint, &ins, true, true); in submit_one_async_extent()
1125 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent()
1159 u64 alloc_hint = 0; in btrfs_get_extent_allocation_hint()
1173 alloc_hint = btrfs_extent_map_block_start(em); in btrfs_get_extent_allocation_hint()
1177 alloc_hint = btrfs_extent_map_block_start(em); in btrfs_get_extent_allocation_hint()
1183 return alloc_hint;
1194 * @alloc_hint: The hint for the extent allocator.
1208 u64 alloc_hint, u32 *ret_alloc_size) in cow_one_range()
1220 0, alloc_hint, in in cow_one_range()
1031 submit_one_async_extent(struct async_chunk * async_chunk,struct async_extent * async_extent,u64 * alloc_hint) submit_one_async_extent() argument
1156 u64 alloc_hint = 0; btrfs_get_extent_allocation_hint() local
1205 cow_one_range(struct btrfs_inode * inode,struct folio * locked_folio,struct btrfs_key * ins,struct extent_state ** cached,u64 file_offset,u32 num_bytes,u32 min_alloc_size,u64 alloc_hint,u32 * ret_alloc_size) cow_one_range() argument
1353 u64 alloc_hint = 0; cow_file_range() local
1534 u64 alloc_hint = 0; submit_compressed_extents() local
9229 __btrfs_prealloc_file_range(struct inode * inode,int mode,u64 start,u64 num_bytes,u64 min_size,loff_t actual_len,u64 * alloc_hint,struct btrfs_trans_handle * trans) __btrfs_prealloc_file_range() argument
9376 btrfs_prealloc_file_range(struct inode * inode,int mode,u64 start,u64 num_bytes,u64 min_size,loff_t actual_len,u64 * alloc_hint) btrfs_prealloc_file_range() argument
9386 btrfs_prealloc_file_range_trans(struct inode * inode,struct btrfs_trans_handle * trans,int mode,u64 start,u64 num_bytes,u64 min_size,loff_t actual_len,u64 * alloc_hint) btrfs_prealloc_file_range_trans() argument
[all...]
H A Dfile.c2896 u64 alloc_hint = 0; in btrfs_zero_range() local
2942 alloc_hint = btrfs_extent_map_block_start(em) + em->len; in btrfs_zero_range()
3045 offset + len, &alloc_hint); in btrfs_zero_range()
3077 u64 alloc_hint = 0; in btrfs_fallocate() local
3221 offset + len, &alloc_hint); in btrfs_fallocate()
H A Dblock-group.c3383 u64 alloc_hint = 0; cache_save_setup() local
H A Drelocation.c2791 u64 alloc_hint = 0; in prealloc_file_extent_cluster()
2837 end + 1, &alloc_hint); in prealloc_file_extent_cluster()
2792 u64 alloc_hint = 0; prealloc_file_extent_cluster() local
/linux/include/linux/
H A Dio_uring_types.h100 unsigned int alloc_hint;
99 unsigned int alloc_hint; global() member
/linux/include/linux/ceph/
H A Drados.h538 } __attribute__ ((packed)) alloc_hint; member
H A Dosd_client.h194 } alloc_hint; member
/linux/net/ceph/
H A Dosd_client.c928 op->alloc_hint.expected_object_size = expected_object_size; in osd_req_op_alloc_hint_init()
929 op->alloc_hint.expected_write_size = expected_write_size; in osd_req_op_alloc_hint_init()
930 op->alloc_hint.flags = flags; in osd_req_op_alloc_hint_init()
1005 dst->alloc_hint.expected_object_size = in osd_req_encode_op()
1006 cpu_to_le64(src->alloc_hint.expected_object_size); in osd_req_encode_op()
1007 dst->alloc_hint.expected_write_size = in osd_req_encode_op()
1008 cpu_to_le64(src->alloc_hint.expected_write_size); in osd_req_encode_op()
1009 dst->alloc_hint.flags = cpu_to_le32(src->alloc_hint.flags); in osd_req_encode_op()
/linux/fs/f2fs/
H A Dsegment.c2936 unsigned int alloc_hint = sbi->allocate_section_hint; in get_new_segment()
2982 alloc_hint > MAIN_SECS(sbi)) in get_new_segment()
2983 alloc_hint = MAIN_SECS(sbi); in get_new_segment()
2989 hint < alloc_hint) { in get_new_segment()
2990 hint = alloc_hint; in get_new_segment()
2992 hint >= alloc_hint) { in get_new_segment()
2879 unsigned int alloc_hint = sbi->allocate_section_hint; get_new_segment() local