Searched refs:alloc_hint (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.15/lib/ |
D | sbitmap.c | 16 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) = prandom_u32() % 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() 85 bool alloc_hint) in sbitmap_init_node() argument 107 if (alloc_hint) { in sbitmap_init_node() 111 sb->alloc_hint = NULL; in sbitmap_init_node() [all …]
|
/Linux-v5.15/include/linux/ |
D | sbitmap.h | 75 unsigned int __percpu *alloc_hint; member 156 gfp_t flags, int node, bool round_robin, bool alloc_hint); 164 free_percpu(sb->alloc_hint); in sbitmap_free() 326 if (likely(sb->alloc_hint && !sb->round_robin && bitnr < sb->depth)) in sbitmap_put() 327 *raw_cpu_ptr(sb->alloc_hint) = bitnr; in sbitmap_put()
|
/Linux-v5.15/fs/btrfs/ |
D | inode.c | 855 u64 alloc_hint = 0; in submit_compressed_extents() local 907 0, alloc_hint, &ins, 1, 1); in submit_compressed_extents() 992 alloc_hint = ins.objectid + ins.offset; in submit_compressed_extents() 1019 u64 alloc_hint = 0; in get_extent_allocation_hint() local 1033 alloc_hint = em->block_start; in get_extent_allocation_hint() 1037 alloc_hint = em->block_start; in get_extent_allocation_hint() 1043 return alloc_hint; in get_extent_allocation_hint() 1066 u64 alloc_hint = 0; in cow_file_range() local 1140 alloc_hint = get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range() 1162 min_alloc_size, 0, alloc_hint, in cow_file_range() [all …]
|
D | file.c | 3149 u64 alloc_hint = 0; in btrfs_zero_range() local 3196 alloc_hint = em->block_start + em->len; in btrfs_zero_range() 3301 offset + len, &alloc_hint); in btrfs_zero_range() 3333 u64 alloc_hint = 0; in btrfs_fallocate() local 3500 offset + len, &alloc_hint); in btrfs_fallocate()
|
D | block-group.c | 2656 u64 alloc_hint = 0; in cache_save_setup() local 2784 &alloc_hint); in cache_save_setup()
|
D | ctree.h | 3209 loff_t actual_len, u64 *alloc_hint); 3213 loff_t actual_len, u64 *alloc_hint);
|
D | relocation.c | 2778 u64 alloc_hint = 0; in prealloc_file_extent_cluster() local 2892 end + 1, &alloc_hint); in prealloc_file_extent_cluster()
|
/Linux-v5.15/include/linux/ceph/ |
D | rados.h | 534 } __attribute__ ((packed)) alloc_hint; member
|
D | osd_client.h | 140 } alloc_hint; member
|
/Linux-v5.15/net/ceph/ |
D | osd_client.c | 943 op->alloc_hint.expected_object_size = expected_object_size; in osd_req_op_alloc_hint_init() 944 op->alloc_hint.expected_write_size = expected_write_size; in osd_req_op_alloc_hint_init() 945 op->alloc_hint.flags = flags; in osd_req_op_alloc_hint_init() 1017 dst->alloc_hint.expected_object_size = in osd_req_encode_op() 1018 cpu_to_le64(src->alloc_hint.expected_object_size); in osd_req_encode_op() 1019 dst->alloc_hint.expected_write_size = in osd_req_encode_op() 1020 cpu_to_le64(src->alloc_hint.expected_write_size); in osd_req_encode_op() 1021 dst->alloc_hint.flags = cpu_to_le32(src->alloc_hint.flags); in osd_req_encode_op()
|