Lines Matching defs:alloc_hint
16 sb->alloc_hint = alloc_percpu_gfp(unsigned int, flags);
17 if (!sb->alloc_hint)
24 *per_cpu_ptr(sb->alloc_hint, i) = get_random_u32_below(depth);
34 hint = this_cpu_read(*sb->alloc_hint);
37 this_cpu_write(*sb->alloc_hint, hint);
50 this_cpu_write(*sb->alloc_hint, 0);
56 this_cpu_write(*sb->alloc_hint, hint);
85 bool alloc_hint)
106 if (alloc_hint) {
110 sb->alloc_hint = NULL;
115 free_percpu(sb->alloc_hint);
172 unsigned int alloc_hint,
179 alloc_hint, wrap);
192 unsigned int alloc_hint,
203 alloc_hint, wrap);
211 alloc_hint = 0;
219 static int __sbitmap_get(struct sbitmap *sb, unsigned int alloc_hint)
223 index = SB_NR_TO_INDEX(sb, alloc_hint);
227 * alloc_hint to find the right word index. No point in looping
231 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint);
233 alloc_hint = 0;
235 return sbitmap_find_bit(sb, UINT_MAX, index, alloc_hint,
244 if (WARN_ON_ONCE(unlikely(!sb->alloc_hint)))
257 unsigned int alloc_hint,
262 index = SB_NR_TO_INDEX(sb, alloc_hint);
263 alloc_hint = SB_NR_TO_BIT(sb, alloc_hint);
265 return sbitmap_find_bit(sb, shallow_depth, index, alloc_hint, true);
273 if (WARN_ON_ONCE(unlikely(!sb->alloc_hint)))
606 data_race(*per_cpu_ptr(sb->alloc_hint, cpu) = tag);
699 seq_puts(m, "alloc_hint={");
705 seq_printf(m, "%u", *per_cpu_ptr(sbq->sb.alloc_hint, i));