Home
last modified time | relevance | path

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

/linux-6.6.21/lib/
Dpercpu-refcount.c42 static unsigned long __percpu *percpu_count_ptr(struct percpu_ref *ref) in percpu_count_ptr() function
45 (ref->percpu_count_ptr & ~__PERCPU_REF_ATOMIC_DEAD); in percpu_count_ptr()
71 ref->percpu_count_ptr = (unsigned long) in percpu_ref_init()
73 if (!ref->percpu_count_ptr) in percpu_ref_init()
78 free_percpu((void __percpu *)ref->percpu_count_ptr); in percpu_ref_init()
79 ref->percpu_count_ptr = 0; in percpu_ref_init()
87 ref->percpu_count_ptr |= __PERCPU_REF_ATOMIC; in percpu_ref_init()
94 ref->percpu_count_ptr |= __PERCPU_REF_DEAD; in percpu_ref_init()
110 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_exit()
116 ref->percpu_count_ptr = __PERCPU_REF_ATOMIC_DEAD; in __percpu_ref_exit()
[all …]
/linux-6.6.21/include/linux/
Dpercpu-refcount.h110 unsigned long percpu_count_ptr; member
174 percpu_ptr = READ_ONCE(ref->percpu_count_ptr); in __ref_is_percpu()
285 } else if (!(ref->percpu_count_ptr & __PERCPU_REF_DEAD)) { in percpu_ref_tryget_live_rcu()
365 return ref->percpu_count_ptr & __PERCPU_REF_DEAD; in percpu_ref_is_dying()
/linux-6.6.21/drivers/md/
Dmd.c5653 if (mddev->writes_pending.percpu_count_ptr) in mddev_init_writes_pending()