vmalloc,rcu: convert call_rcu(rcu_free_va) to kfree_rcu()
Subsystems (2)
PATCH 33/36 vmalloc,rcu: convert call_rcu(rcu_free_va) to kfree_rcu()
The rcu callback rcu_free_va() just calls a kfree(), so we use kfree_rcu() instead of the call_rcu(rcu_free_va).
Signed-off-by Lai Jiangshan <[email protected]>
--- mm/vmalloc.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)
mm/vmalloc.c +1 -8
@@ -416,13 +416,6 @@ overflow:return va; } -static void rcu_free_va (struct rcu_head *head) -{ - struct vmap_area *va = container_of(head, struct vmap_area, rcu_head); - -kfree (va); -} -static void __free_vmap_area (struct vmap_area *va) {BUG_ON (RB_EMPTY_NODE (&va->rb_node));
@@ -439,7 +432,7 @@ static void __free_vmap_area(struct vmap_area *va)if (va->va_end >VMALLOC_START && va->va_end <=VMALLOC_END ) vmap_area_pcpu_hole =max (vmap_area_pcpu_hole, va->va_end); -call_rcu (&va->rcu_head, rcu_free_va); +kfree_rcu (va, rcu_head); }/*
Signature · 8 lines
1.7.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"[email protected]"> [email protected] </a>