Searched refs:sb (Results 1 – 1 of 1) sorted by relevance
12 static int init_alloc_hint(struct sbitmap *sb, gfp_t flags) in init_alloc_hint() argument14 unsigned depth = sb->depth; in init_alloc_hint()16 sb->alloc_hint = alloc_percpu_gfp(unsigned int, flags); in init_alloc_hint()17 if (!sb->alloc_hint) in init_alloc_hint()20 if (depth && !sb->round_robin) { in init_alloc_hint()24 *per_cpu_ptr(sb->alloc_hint, i) = prandom_u32() % depth; in init_alloc_hint()29 static inline unsigned update_alloc_hint_before_get(struct sbitmap *sb, in update_alloc_hint_before_get() argument34 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()43 static inline void update_alloc_hint_after_get(struct sbitmap *sb, in update_alloc_hint_after_get() argument[all …]