diff options
author | Joe Perches <joe@perches.com> | 2011-05-28 21:36:34 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:56:56 +0400 |
commit | 8c1fec1ba83b7ce20b65a492a6e73e8d524aed88 (patch) | |
tree | e494a63feeaf0ce15b2384fb8bc93c8c10380a94 /mm/page_cgroup.c | |
parent | 558feb0818374d657fbc1ea03776ee20f204b3a6 (diff) | |
download | linux-8c1fec1ba83b7ce20b65a492a6e73e8d524aed88.tar.xz |
mm: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Paul Menage <menage@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'mm/page_cgroup.c')
-rw-r--r-- | 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 39d216d535ea..6bdc67dbbc28 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; |