percpu_ref: minor code and comment updates
authorTejun Heo <tj@kernel.org>
Wed, 24 Sep 2014 17:31:48 +0000 (13:31 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 24 Sep 2014 17:31:48 +0000 (13:31 -0400)
commit6251f9976af7656b6970a8820153f356430f5de2
treeaa2d83279dfb125b9bbd88083a32bfa5e99bf3da
parenta2237370194484ee6aeeff04b617e4b14d178966
percpu_ref: minor code and comment updates

* Some comments became stale.  Updated.
* percpu_ref_tryget() unnecessarily initializes @ret.  Removed.
* A blank line removed from percpu_ref_kill_rcu().
* Explicit function name in a WARN format string replaced with __func__.
* WARN_ON() in percpu_ref_reinit() converted to WARN_ON_ONCE().

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Kent Overstreet <kmo@daterainc.com>
include/linux/percpu-refcount.h
lib/percpu-refcount.c