OSDN Git Service

rcu: Introduce kfree_rcu() single-argument macro
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Fri, 20 Nov 2020 11:49:16 +0000 (12:49 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 4 Jan 2021 21:42:04 +0000 (13:42 -0800)
commit5130b8fd06901c1b3a4bd0d0f5c5ea99b2b0a6f0
tree1973acaeb4d8bea3c0633d09d9a191dedf64e117
parent84109ab58590dc6c4e7eb36329fdc7ec121ed5a5
rcu: Introduce kfree_rcu() single-argument macro

There is a kvfree_rcu() single argument macro that handles pointers
returned by kvmalloc(). Even though it also handles pointer returned by
kmalloc(), readability suffers.

This commit therefore updates the kfree_rcu() macro to explicitly pair
with kmalloc(), thus improving readability.

Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/rcupdate.h