Home
last modified time | relevance | path

Searched refs:alloc_hint (Results 1 – 13 of 13) 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()
336 xnr->alloc_hint = XFS_AGB_TO_FSB(sc->mp, 0, XFS_AGFL_BLOCK(sc->mp) + 1); 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.c1268 xfs_fsblock_t alloc_hint) in xrep_rmap_alloc_vextent() argument
1299 return xfs_alloc_vextent_near_bno(args, alloc_hint); in xrep_rmap_alloc_vextent()
/linux/io_uring/
H A Dfiletable.c25 if (table->alloc_hint < ctx->file_alloc_start || in io_file_bitmap_get()
26 table->alloc_hint >= ctx->file_alloc_end) in io_file_bitmap_get()
27 table->alloc_hint = ctx->file_alloc_start; in io_file_bitmap_get()
30 ret = find_next_zero_bit(table->bitmap, nr, table->alloc_hint); in io_file_bitmap_get()
34 if (table->alloc_hint == ctx->file_alloc_start) in io_file_bitmap_get()
36 nr = table->alloc_hint; in io_file_bitmap_get()
37 table->alloc_hint = ctx->file_alloc_start; in io_file_bitmap_get()
/linux/fs/btrfs/
H A Dinode.c1135 u64 *alloc_hint) in submit_one_async_extent() argument
1176 0, *alloc_hint, &ins, true, true); in submit_one_async_extent()
1226 *alloc_hint = ins.objectid + ins.offset; in submit_one_async_extent()
1260 u64 alloc_hint = 0; in btrfs_get_extent_allocation_hint() local
1274 alloc_hint = btrfs_extent_map_block_start(em); in btrfs_get_extent_allocation_hint()
1278 alloc_hint = btrfs_extent_map_block_start(em); in btrfs_get_extent_allocation_hint()
1284 return alloc_hint; in btrfs_get_extent_allocation_hint()
1309 u64 alloc_hint, u32 *ret_alloc_size) in cow_one_range() argument
1321 0, alloc_hint, ins, true, true); in cow_one_range()
1447 u64 alloc_hint = 0; in cow_file_range() local
[all …]
H A Dfile.c2927 u64 alloc_hint = 0; in btrfs_zero_range() local
2973 alloc_hint = btrfs_extent_map_block_start(em) + em->len; in btrfs_zero_range()
3076 offset + len, &alloc_hint); in btrfs_zero_range()
3108 u64 alloc_hint = 0; in btrfs_fallocate() local
3252 offset + len, &alloc_hint); in btrfs_fallocate()
H A Dblock-group.c3279 u64 alloc_hint = 0; in cache_save_setup() local
3407 &alloc_hint); in cache_save_setup()
H A Drelocation.c2667 u64 alloc_hint = 0; in prealloc_file_extent_cluster() local
2713 end + 1, &alloc_hint); in prealloc_file_extent_cluster()
/linux/include/linux/
H A Dio_uring_types.h68 unsigned int alloc_hint; 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.c927 op->alloc_hint.expected_object_size = expected_object_size; in osd_req_op_alloc_hint_init()
928 op->alloc_hint.expected_write_size = expected_write_size; in osd_req_op_alloc_hint_init()
929 op->alloc_hint.flags = flags; in osd_req_op_alloc_hint_init()
1004 dst->alloc_hint.expected_object_size = in osd_req_encode_op()
1005 cpu_to_le64(src->alloc_hint.expected_object_size); in osd_req_encode_op()
1006 dst->alloc_hint.expected_write_size = in osd_req_encode_op()
1007 cpu_to_le64(src->alloc_hint.expected_write_size); in osd_req_encode_op()
1008 dst->alloc_hint.flags = cpu_to_le32(src->alloc_hint.flags); in osd_req_encode_op()