percpu-refcount: rename percpu_ref_tryget() to percpu_ref_tryget_live()
authorTejun Heo <tj@kernel.org>
Fri, 9 May 2014 19:11:53 +0000 (15:11 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 9 May 2014 19:42:15 +0000 (15:42 -0400)
commit2070d50e1cbe3d7f157cbf8e63279c893f375d7f
tree0044915780ebcc3ccf0c37c890bb17331b0cc98a
parentfdb9c293decf7e06795f7d9ae409df907c7ae1b6
percpu-refcount: rename percpu_ref_tryget() to percpu_ref_tryget_live()

percpu_ref_tryget() is different from the usual tryget semantics in
that it fails if the refcnt is in its dying stage even if the refcnt
hasn't reached zero yet.  We're about to introduce the more
conventional tryget and the current one has only one user.  Let's
rename it to percpu_ref_tryget_live() so that it explicitly signifies
the peculiarities of its semantics.

This is pure rename.

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