percpu_ref: reorganize __percpu_ref_switch_to_atomic() and relocate percpu_ref_switch...
authorTejun Heo <tj@kernel.org>
Tue, 29 Sep 2015 21:47:17 +0000 (17:47 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 10 Aug 2016 19:02:58 +0000 (15:02 -0400)
commitb2302c7fdc654d249c546aac6228b8e10969bc1e
treed1c0aa8b480c300ab85eb20651b2445a3137a816
parenta2f5630cb737787c1bfd9aa894b1bf9f3f4554ea
percpu_ref: reorganize __percpu_ref_switch_to_atomic() and relocate percpu_ref_switch_to_atomic()

Reorganize __percpu_ref_switch_to_atomic() so that it looks
structurally similar to __percpu_ref_switch_to_percpu() and relocate
percpu_ref_switch_to_atomic so that the two internal functions are
co-located.

This patch doesn't introduce any functional differences.

Signed-off-by: Tejun Heo <tj@kernel.org>
lib/percpu-refcount.c