vmalloc,rcu: convert call_rcu(rcu_free_vb) to kfree_rcu()
Subsystems (2)
PATCH 34/36 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 Lai Jiangshan <[email protected]>
--- mm/vmalloc.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)
mm/vmalloc.c +1 -8
@@ -778,13 +778,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); - -kfree (vb); -} -static void free_vmap_block (struct vmap_block *vb) {struct vmap_block *tmp;
@@ -797,7 +790,7 @@ static void free_vmap_block(struct vmap_block *vb)BUG_ON (tmp != vb);free_vmap_area_noflush (vb->va); -call_rcu (&vb->rcu_head, rcu_free_vb); +kfree_rcu (vb, rcu_head); }static void purge_fragmented_blocks (int cpu)
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>