The patch titled memcg: use vzalloc instead of vmalloc has been added to the -mm tree. Its filename is memcg-use-vzalloc-instead-of-vmalloc.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: memcg: use vzalloc instead of vmalloc From: Bob Liu <lliubbo@xxxxxxxxx> Signed-off-by: Bob Liu <lliubbo@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_cgroup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN mm/page_cgroup.c~memcg-use-vzalloc-instead-of-vmalloc mm/page_cgroup.c --- a/mm/page_cgroup.c~memcg-use-vzalloc-instead-of-vmalloc +++ a/mm/page_cgroup.c @@ -513,11 +513,10 @@ int swap_cgroup_swapon(int type, unsigne 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; _ Patches currently in -mm which might be from lliubbo@xxxxxxxxx are origin.patch memcg-use-vzalloc-instead-of-vmalloc.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html