Searched refs:sbq (Results 1 – 1 of 1) sorted by relevance
/lib/ |
D | sbitmap.c | 338 static unsigned int sbq_calc_wake_batch(struct sbitmap_queue *sbq, in sbq_calc_wake_batch() argument 360 shallow_depth = min(1U << sbq->sb.shift, sbq->min_shallow_depth); in sbq_calc_wake_batch() 361 depth = ((depth >> sbq->sb.shift) * shallow_depth + in sbq_calc_wake_batch() 362 min(depth & ((1U << sbq->sb.shift) - 1), shallow_depth)); in sbq_calc_wake_batch() 369 int sbitmap_queue_init_node(struct sbitmap_queue *sbq, unsigned int depth, in sbitmap_queue_init_node() argument 375 ret = sbitmap_init_node(&sbq->sb, depth, shift, flags, node); in sbitmap_queue_init_node() 379 sbq->alloc_hint = alloc_percpu_gfp(unsigned int, flags); in sbitmap_queue_init_node() 380 if (!sbq->alloc_hint) { in sbitmap_queue_init_node() 381 sbitmap_free(&sbq->sb); in sbitmap_queue_init_node() 387 *per_cpu_ptr(sbq->alloc_hint, i) = prandom_u32() % depth; in sbitmap_queue_init_node() [all …]
|