summaryrefslogtreecommitdiffstats
path: root/mm/init-mm.c
diff options
context:
space:
mode:
authorAndrea Arcangeli2011-05-25 02:12:14 +0200
committerLinus Torvalds2011-05-25 17:39:21 +0200
commit692e0b35427a088bf75d9363788c61c7edbe93a5 (patch)
treedb1b4365b70fbe809753e6ac097b60fb4f7299a8 /mm/init-mm.c
parentmm: uninline large generic tlb.h functions (diff)
downloadkernel-qcow2-linux-692e0b35427a088bf75d9363788c61c7edbe93a5.tar.gz
kernel-qcow2-linux-692e0b35427a088bf75d9363788c61c7edbe93a5.tar.xz
kernel-qcow2-linux-692e0b35427a088bf75d9363788c61c7edbe93a5.zip
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>
Diffstat (limited to 'mm/init-mm.c')
0 files changed, 0 insertions, 0 deletions