All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] page cgroup: using vzalloc instead of vmalloc
@ 2011-08-04  3:09 Bob Liu
  2011-08-04  3:09 ` [PATCH 2/4] frontswap: " Bob Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 26+ messages in thread
From: Bob Liu @ 2011-08-04  3:09 UTC (permalink / raw)
  To: akpm
  Cc: linux-mm, kamezawa.hiroyu, cesarb, emunson, penberg, namhyung,
	hannes, mhocko, lucas.demarchi, aarcange, tj, vapier, jkosina,
	rientjes, dan.magenheimer, Bob Liu

Signed-off-by: Bob Liu <lliubbo@gmail.com>
---
 mm/page_cgroup.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c
index 39d216d..6bdc67d 100644
--- a/mm/page_cgroup.c
+++ b/mm/page_cgroup.c
@@ -513,11 +513,10 @@ int swap_cgroup_swapon(int type, unsigned long max_pages)
 	length = DIV_ROUND_UP(max_pages, SC_PER_PAGE);
 	array_size = length * sizeof(void *);
 
-	array = vmalloc(array_size);
+	array = vzalloc(array_size);
 	if (!array)
 		goto nomem;
 
-	memset(array, 0, array_size);
 	ctrl = &swap_cgroup_ctrl[type];
 	mutex_lock(&swap_cgroup_mutex);
 	ctrl->length = length;
-- 
1.6.3.3


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  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:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2011-08-08  1:04 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-04  3:09 [PATCH 1/4] page cgroup: using vzalloc instead of vmalloc Bob Liu
2011-08-04  3:09 ` [PATCH 2/4] frontswap: " Bob Liu
2011-08-04  3:09   ` [PATCH 3/4] sparse: using kzalloc to clean up code Bob Liu
2011-08-04  3:09     ` [PATCH 4/4] percpu: rename pcpu_mem_alloc to pcpu_mem_zalloc Bob Liu
2011-08-04  6:13       ` Pekka Enberg
2011-08-04  8:09       ` Michal Hocko
2011-08-04  9:04       ` Tejun Heo
2011-08-04  6:10     ` [PATCH 3/4] sparse: using kzalloc to clean up code Pekka Enberg
2011-08-04  6:55       ` Bob Liu
2011-08-04  7:22         ` Johannes Weiner
2011-08-04  7:26     ` Johannes Weiner
2011-08-04  7:37       ` Pekka Enberg
2011-08-04  8:07     ` Michal Hocko
2011-08-04  7:57   ` [PATCH 2/4] frontswap: using vzalloc instead of vmalloc Michal Hocko
2011-08-04  8:14     ` Johannes Weiner
2011-08-04  9:00       ` Michal Hocko
2011-08-04 16:47         ` Dan Magenheimer
2011-08-05  2:36           ` Bob Liu
2011-08-05  2:45             ` Dan Magenheimer
2011-08-05  2:57               ` Bob Liu
2011-08-05 18:13                 ` Dan Magenheimer
2011-08-06  3:59                   ` Bob Liu
2011-08-04  6:02 ` [PATCH 1/4] page cgroup: " Pekka Enberg
2011-08-04  7:23 ` Johannes Weiner
2011-08-04  7:53 ` Michal Hocko
2011-08-08  0:56 ` KAMEZAWA Hiroyuki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.