Home
last modified time | relevance | path

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

/linux-6.12.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) = 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-6.12.1/fs/xfs/scrub/
Dnewbt.c88 xfs_fsblock_t alloc_hint, in xrep_newbt_init_ag() argument
94 xnr->alloc_hint = alloc_hint; in xrep_newbt_init_ag()
207 xfs_agnumber_t agno = XFS_FSB_TO_AGNO(sc->mp, xnr->alloc_hint); in xrep_newbt_validate_ag_alloc_hint()
210 xfs_verify_fsbno(sc->mp, xnr->alloc_hint)) in xrep_newbt_validate_ag_alloc_hint()
213 xnr->alloc_hint = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, in xrep_newbt_validate_ag_alloc_hint()
244 error = xnr->alloc_vextent(sc, &args, xnr->alloc_hint); in xrep_newbt_alloc_ag_blocks()
247 xnr->alloc_hint); in xrep_newbt_alloc_ag_blocks()
269 xnr->alloc_hint = args.fsbno + args.len; in xrep_newbt_alloc_ag_blocks()
286 if (xfs_verify_fsbno(sc->mp, xnr->alloc_hint)) in xrep_newbt_validate_file_alloc_hint()
289 xnr->alloc_hint = XFS_AGB_TO_FSB(sc->mp, 0, XFS_AGFL_BLOCK(sc->mp) + 1); in xrep_newbt_validate_file_alloc_hint()
[all …]
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,
Drmap_repair.c1204 xfs_fsblock_t alloc_hint) in xrep_rmap_alloc_vextent() argument
1235 return xfs_alloc_vextent_near_bno(args, alloc_hint); in xrep_rmap_alloc_vextent()
/linux-6.12.1/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.12.1/include/linux/
Dsbitmap.h84 unsigned int __percpu *alloc_hint; member
171 gfp_t flags, int node, bool round_robin, bool alloc_hint);
187 free_percpu(sb->alloc_hint); in sbitmap_free()
349 if (likely(sb->alloc_hint && !sb->round_robin && bitnr < sb->depth)) in sbitmap_put()
350 *raw_cpu_ptr(sb->alloc_hint) = bitnr; in sbitmap_put()
Dio_uring_types.h66 unsigned int alloc_hint; member
/linux-6.12.1/fs/btrfs/
Dbtrfs_inode.h605 loff_t actual_len, u64 *alloc_hint);
609 loff_t actual_len, u64 *alloc_hint);
Ddirect-io.c181 u64 alloc_hint; in btrfs_new_extent_direct() local
184 alloc_hint = btrfs_get_extent_allocation_hint(inode, start, len); in btrfs_new_extent_direct()
187 0, alloc_hint, &ins, 1, 1); in btrfs_new_extent_direct()
Dinode.c1177 u64 *alloc_hint) in submit_one_async_extent() argument
1217 0, *alloc_hint, &ins, 1, 1); in submit_one_async_extent()
1263 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent()
1296 u64 alloc_hint = 0; in btrfs_get_extent_allocation_hint() local
1310 alloc_hint = extent_map_block_start(em); in btrfs_get_extent_allocation_hint()
1314 alloc_hint = extent_map_block_start(em); in btrfs_get_extent_allocation_hint()
1320 return alloc_hint; in btrfs_get_extent_allocation_hint()
1359 u64 alloc_hint = 0; in cow_file_range() local
1402 alloc_hint = btrfs_get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range()
1426 min_alloc_size, 0, alloc_hint, in cow_file_range()
[all …]
Dfile.c2888 u64 alloc_hint = 0; in btrfs_zero_range() local
2932 alloc_hint = extent_map_block_start(em) + em->len; in btrfs_zero_range()
3034 offset + len, &alloc_hint); in btrfs_zero_range()
3066 u64 alloc_hint = 0; in btrfs_fallocate() local
3206 offset + len, &alloc_hint); in btrfs_fallocate()
Dblock-group.c3154 u64 alloc_hint = 0; in cache_save_setup() local
3282 &alloc_hint); in cache_save_setup()
Drelocation.c2731 u64 alloc_hint = 0; in prealloc_file_extent_cluster() local
2822 end + 1, &alloc_hint); in prealloc_file_extent_cluster()
/linux-6.12.1/include/linux/ceph/
Drados.h538 } __attribute__ ((packed)) alloc_hint; member
Dosd_client.h194 } alloc_hint; member
/linux-6.12.1/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()