Home
last modified time | relevance | path

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

/Linux-v6.1/lib/
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) = prandom_u32_max(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
106 if (alloc_hint) { in sbitmap_init_node()
110 sb->alloc_hint = NULL; in sbitmap_init_node()
[all …]
/Linux-v6.1/io_uring/
Dfiletable.h30 table->alloc_hint = bit; in io_file_bitmap_clear()
37 table->alloc_hint = bit + 1; in io_file_bitmap_set()
65 ctx->file_table.alloc_hint = ctx->file_alloc_start; in io_reset_alloc_hint()
Dfiletable.c23 ret = find_next_zero_bit(table->bitmap, nr, table->alloc_hint); in io_file_bitmap_get()
27 if (table->alloc_hint == ctx->file_alloc_start) in io_file_bitmap_get()
29 nr = table->alloc_hint; in io_file_bitmap_get()
30 table->alloc_hint = ctx->file_alloc_start; in io_file_bitmap_get()
/Linux-v6.1/include/linux/
Dsbitmap.h79 unsigned int __percpu *alloc_hint; member
160 gfp_t flags, int node, bool round_robin, bool alloc_hint);
176 free_percpu(sb->alloc_hint); in sbitmap_free()
338 if (likely(sb->alloc_hint && !sb->round_robin && bitnr < sb->depth)) in sbitmap_put()
339 *raw_cpu_ptr(sb->alloc_hint) = bitnr; in sbitmap_put()
Dio_uring_types.h34 unsigned int alloc_hint; member
/Linux-v6.1/fs/btrfs/
Dinode.c957 u64 *alloc_hint) in submit_one_async_extent() argument
989 0, *alloc_hint, &ins, 1, 1); in submit_one_async_extent()
1053 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent()
1082 u64 alloc_hint = 0; in submit_compressed_extents() local
1096 &alloc_hint); in submit_compressed_extents()
1109 u64 alloc_hint = 0; in get_extent_allocation_hint() local
1123 alloc_hint = em->block_start; in get_extent_allocation_hint()
1127 alloc_hint = em->block_start; in get_extent_allocation_hint()
1133 return alloc_hint; in get_extent_allocation_hint()
1179 u64 alloc_hint = 0; in cow_file_range() local
[all …]
Dfile.c3163 u64 alloc_hint = 0; in btrfs_zero_range() local
3208 alloc_hint = em->block_start + em->len; in btrfs_zero_range()
3311 offset + len, &alloc_hint); in btrfs_zero_range()
3343 u64 alloc_hint = 0; in btrfs_fallocate() local
3484 offset + len, &alloc_hint); in btrfs_fallocate()
Dblock-group.c2729 u64 alloc_hint = 0; in cache_save_setup() local
2857 &alloc_hint); in cache_save_setup()
Dctree.h3442 loff_t actual_len, u64 *alloc_hint);
3446 loff_t actual_len, u64 *alloc_hint);
Drelocation.c2787 u64 alloc_hint = 0; in prealloc_file_extent_cluster() local
2876 end + 1, &alloc_hint); in prealloc_file_extent_cluster()
/Linux-v6.1/include/linux/ceph/
Drados.h534 } __attribute__ ((packed)) alloc_hint; member
Dosd_client.h140 } alloc_hint; member
/Linux-v6.1/net/ceph/
Dosd_client.c922 op->alloc_hint.expected_object_size = expected_object_size; in osd_req_op_alloc_hint_init()
923 op->alloc_hint.expected_write_size = expected_write_size; in osd_req_op_alloc_hint_init()
924 op->alloc_hint.flags = flags; in osd_req_op_alloc_hint_init()
996 dst->alloc_hint.expected_object_size = in osd_req_encode_op()
997 cpu_to_le64(src->alloc_hint.expected_object_size); in osd_req_encode_op()
998 dst->alloc_hint.expected_write_size = in osd_req_encode_op()
999 cpu_to_le64(src->alloc_hint.expected_write_size); in osd_req_encode_op()
1000 dst->alloc_hint.flags = cpu_to_le32(src->alloc_hint.flags); in osd_req_encode_op()