aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2011-03-18 00:13:08 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-07-20 17:10:18 -0400
commit22a3c7d188c2b7bfc8e949bf9fad215c094ba78b (patch)
tree24f70f4b4efa508dc3675db550215036c515243a /mm/vmalloc.c
parent14769de93ffcaeead98bcb5771d9f88a84f7153c (diff)
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 <laijs@cn.fujitsu.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Namhyung Kim <namhyung@gmail.com> Cc: David Rientjes <rientjes@google.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r--mm/vmalloc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 7ff9560e2f83..ab8494cde007 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -830,13 +830,6 @@ static struct vmap_block *new_vmap_block(gfp_t gfp_mask)
830 return vb; 830 return vb;
831} 831}
832 832
833static void rcu_free_vb(struct rcu_head *head)
834{
835 struct vmap_block *vb = container_of(head, struct vmap_block, rcu_head);
836
837 kfree(vb);
838}
839
840static void free_vmap_block(struct vmap_block *vb) 833static void free_vmap_block(struct vmap_block *vb)
841{ 834{
842 struct vmap_block *tmp; 835 struct vmap_block *tmp;
@@ -849,7 +842,7 @@ static void free_vmap_block(struct vmap_block *vb)
849 BUG_ON(tmp != vb); 842 BUG_ON(tmp != vb);
850 843
851 free_vmap_area_noflush(vb->va); 844 free_vmap_area_noflush(vb->va);
852 call_rcu(&vb->rcu_head, rcu_free_vb); 845 kfree_rcu(vb, rcu_head);
853} 846}
854 847
855static void purge_fragmented_blocks(int cpu) 848static void purge_fragmented_blocks(int cpu)