Home
last modified time | relevance | path

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

/linux-6.6.21/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) = 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()
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-6.6.21/io_uring/
Dfiletable.h26 table->alloc_hint = bit; in io_file_bitmap_clear()
33 table->alloc_hint = bit + 1; in io_file_bitmap_set()
71 ctx->file_table.alloc_hint = ctx->file_alloc_start; in io_reset_alloc_hint()
Dfiletable.c26 ret = find_next_zero_bit(table->bitmap, nr, table->alloc_hint); in io_file_bitmap_get()
30 if (table->alloc_hint == ctx->file_alloc_start) in io_file_bitmap_get()
32 nr = table->alloc_hint; in io_file_bitmap_get()
33 table->alloc_hint = ctx->file_alloc_start; in io_file_bitmap_get()
/linux-6.6.21/include/linux/
Dsbitmap.h79 unsigned int __percpu *alloc_hint; member
166 gfp_t flags, int node, bool round_robin, bool alloc_hint);
182 free_percpu(sb->alloc_hint); in sbitmap_free()
344 if (likely(sb->alloc_hint && !sb->round_robin && bitnr < sb->depth)) in sbitmap_put()
345 *raw_cpu_ptr(sb->alloc_hint) = bitnr; in sbitmap_put()
Dio_uring_types.h34 unsigned int alloc_hint; member
/linux-6.6.21/fs/btrfs/
Dbtrfs_inode.h495 loff_t actual_len, u64 *alloc_hint);
499 loff_t actual_len, u64 *alloc_hint);
Dinode.c1096 u64 *alloc_hint) in submit_one_async_extent() argument
1134 0, *alloc_hint, &ins, 1, 1); in submit_one_async_extent()
1185 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent()
1218 u64 alloc_hint = 0; in get_extent_allocation_hint() local
1232 alloc_hint = em->block_start; in get_extent_allocation_hint()
1236 alloc_hint = em->block_start; in get_extent_allocation_hint()
1242 return alloc_hint; in get_extent_allocation_hint()
1280 u64 alloc_hint = 0; in cow_file_range() local
1355 alloc_hint = get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range()
1378 min_alloc_size, 0, alloc_hint, in cow_file_range()
[all …]
Dfile.c2855 u64 alloc_hint = 0; in btrfs_zero_range() local
2900 alloc_hint = em->block_start + em->len; in btrfs_zero_range()
3003 offset + len, &alloc_hint); in btrfs_zero_range()
3035 u64 alloc_hint = 0; in btrfs_fallocate() local
3175 offset + len, &alloc_hint); in btrfs_fallocate()
Dblock-group.c3102 u64 alloc_hint = 0; in cache_save_setup() local
3230 &alloc_hint); in cache_save_setup()
Drelocation.c2835 u64 alloc_hint = 0; in prealloc_file_extent_cluster() local
2926 end + 1, &alloc_hint); in prealloc_file_extent_cluster()
/linux-6.6.21/include/linux/ceph/
Drados.h538 } __attribute__ ((packed)) alloc_hint; member
Dosd_client.h194 } alloc_hint; member
/linux-6.6.21/net/ceph/
Dosd_client.c950 op->alloc_hint.expected_object_size = expected_object_size; in osd_req_op_alloc_hint_init()
951 op->alloc_hint.expected_write_size = expected_write_size; in osd_req_op_alloc_hint_init()
952 op->alloc_hint.flags = flags; in osd_req_op_alloc_hint_init()
1027 dst->alloc_hint.expected_object_size = in osd_req_encode_op()
1028 cpu_to_le64(src->alloc_hint.expected_object_size); in osd_req_encode_op()
1029 dst->alloc_hint.expected_write_size = in osd_req_encode_op()
1030 cpu_to_le64(src->alloc_hint.expected_write_size); in osd_req_encode_op()
1031 dst->alloc_hint.flags = cpu_to_le32(src->alloc_hint.flags); in osd_req_encode_op()