]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - lib/percpu-refcount.c
percpu_ref: rename things to prepare for decoupling percpu/atomic mode switch
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)
commit9e804d1f58da1eca079f796347c1cf1d1df564e2
tree5fc958822d1d44509a9003be88490ede36ae12f9
parenteecc16ba9a49b05dd847a317af166a6728eb56ca
percpu_ref: rename things to prepare for decoupling percpu/atomic mode switch

percpu_ref will be restructured so that percpu/atomic mode switching
and reference killing are dedoupled.  In preparation, do the following
renames.

* percpu_ref->confirm_kill -> percpu_ref->confirm_switch
* __PERCPU_REF_DEAD -> __PERCPU_REF_ATOMIC
* __percpu_ref_alive() -> __ref_is_percpu()

This patch is pure rename and doesn't introduce any functional
changes.

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