diff options
author | Tejun Heo <tj@kernel.org> | 2013-06-12 20:43:06 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-06-12 20:43:06 -0700 |
commit | ac899061a93250c28562f05ad94d5c74603415bc (patch) | |
tree | 26acc69d4b0f509b2ee0693d3fd7b0fd12232059 /lib/percpu-refcount.c | |
parent | 6a24474da83ea7c8b7d32f05f858b1259994067a (diff) | |
download | kernel_goldelico_gta04-ac899061a93250c28562f05ad94d5c74603415bc.zip kernel_goldelico_gta04-ac899061a93250c28562f05ad94d5c74603415bc.tar.gz kernel_goldelico_gta04-ac899061a93250c28562f05ad94d5c74603415bc.tar.bz2 |
percpu-refcount: cosmetic updates
* s/percpu_ref_release/percpu_ref_func_t/ as it's customary to have _t
postfix for types and the type is gonna be used for a different type
of callback too.
* Add @ARG to function comments.
* Drop unnecessary and unaligned indentation from percpu_ref_init()
function comment.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Kent Overstreet <koverstreet@google.com>
Diffstat (limited to 'lib/percpu-refcount.c')
-rw-r--r-- | lib/percpu-refcount.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/percpu-refcount.c b/lib/percpu-refcount.c index 1a17399..9a78e55 100644 --- a/lib/percpu-refcount.c +++ b/lib/percpu-refcount.c @@ -33,8 +33,8 @@ /** * percpu_ref_init - initialize a percpu refcount - * @ref: ref to initialize - * @release: function which will be called when refcount hits 0 + * @ref: percpu_ref to initialize + * @release: function which will be called when refcount hits 0 * * Initializes the refcount in single atomic counter mode with a refcount of 1; * analagous to atomic_set(ref, 1). @@ -42,7 +42,7 @@ * Note that @release must not sleep - it may potentially be called from RCU * callback context by percpu_ref_kill(). */ -int percpu_ref_init(struct percpu_ref *ref, percpu_ref_release *release) +int percpu_ref_init(struct percpu_ref *ref, percpu_ref_func_t *release) { atomic_set(&ref->count, 1 + PCPU_COUNT_BIAS); @@ -98,6 +98,7 @@ static void percpu_ref_kill_rcu(struct rcu_head *rcu) /** * percpu_ref_kill - safely drop initial ref + * @ref: percpu_ref to kill * * Must be used to drop the initial ref on a percpu refcount; must be called * precisely once before shutdown. |