From: Andrea Arcangeli Date: Wed, 25 May 2011 00:12:14 +0000 (-0700) Subject: mm: thp: optimize memcg charge in khugepaged X-Git-Tag: v3.0-rc1~255 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=692e0b35427a088bf75d9363788c61c7edbe93a5;p=pandora-kernel.git mm: thp: optimize memcg charge in khugepaged We don't need to hold the mmmap_sem through mem_cgroup_newpage_charge(), the mmap_sem is only hold for keeping the vma stable and we don't need the vma stable anymore after we return from alloc_hugepage_vma(). Signed-off-by: Andrea Arcangeli Cc: Johannes Weiner Cc: Hugh Dickins Cc: David Rientjes Cc: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed