Home
last modified time | relevance | path

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

/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() % 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 …]