]> git.baikalelectronics.ru Git - kernel.git/commit
mm: thp: optimize memcg charge in khugepaged
authorAndrea Arcangeli <aarcange@redhat.com>
Wed, 25 May 2011 00:12:14 +0000 (17:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:21 +0000 (08:39 -0700)
commitd9bea12ab4005baff3a9a9e3474c1feef68530fa
treedb1b4365b70fbe809753e6ac097b60fb4f7299a8
parentf2013779e6c7e31cd3d895cc8ab92e1513d05f52
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 <aarcange@redhat.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c