Home
last modified time | relevance | path

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

/linux-4.4.14/kernel/locking/
Dpercpu-rwsem.c14 brw->fast_read_ctr = alloc_percpu(int); in __percpu_init_rwsem()
15 if (unlikely(!brw->fast_read_ctr)) in __percpu_init_rwsem()
33 if (!brw->fast_read_ctr) in percpu_free_rwsem()
37 free_percpu(brw->fast_read_ctr); in percpu_free_rwsem()
38 brw->fast_read_ctr = NULL; /* catch use after free bugs */ in percpu_free_rwsem()
56 __this_cpu_add(*brw->fast_read_ctr, val); in update_fast_ctr()
117 sum += per_cpu(*brw->fast_read_ctr, cpu); in clear_fast_ctr()
118 per_cpu(*brw->fast_read_ctr, cpu) = 0; in clear_fast_ctr()
/linux-4.4.14/include/linux/
Dpercpu-rwsem.h13 unsigned int __percpu *fast_read_ctr; member