Commit 22a3c7d1 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Paul E. McKenney

vmalloc,rcu: Convert call_rcu(rcu_free_vb) to kfree_rcu()

The rcu callback rcu_free_vb() just calls a kfree(),
so we use kfree_rcu() instead of the call_rcu(rcu_free_vb).
Signed-off-by: default avatarLai Jiangshan <>
Signed-off-by: default avatarPaul E. McKenney <>
Cc: Andrew Morton <>
Cc: Namhyung Kim <>
Cc: David Rientjes <>
Reviewed-by: default avatarJosh Triplett <>
parent 14769de9
......@@ -830,13 +830,6 @@ static struct vmap_block *new_vmap_block(gfp_t gfp_mask)
return vb;
static void rcu_free_vb(struct rcu_head *head)
struct vmap_block *vb = container_of(head, struct vmap_block, rcu_head);
static void free_vmap_block(struct vmap_block *vb)
struct vmap_block *tmp;
......@@ -849,7 +842,7 @@ static void free_vmap_block(struct vmap_block *vb)
BUG_ON(tmp != vb);
call_rcu(&vb->rcu_head, rcu_free_vb);
kfree_rcu(vb, rcu_head);
static void purge_fragmented_blocks(int cpu)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment