thp: change split_huge_page_pmd() interface
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Wed, 12 Dec 2012 21:50:59 +0000 (13:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Dec 2012 01:38:31 +0000 (17:38 -0800)
commite180377f1ae48b3cbc559c9875d9b038f7f000c6
treec51e0db181acc0372479bce5cd68b99abca7d8bb
parentcad7f613c4d010e1d0f05c9a4fb33c7ae40ba115
thp: change split_huge_page_pmd() interface

Pass vma instead of mm and add address parameter.

In most cases we already have vma on the stack. We provides
split_huge_page_pmd_mm() for few cases when we have mm, but not vma.

This change is preparation to huge zero pmd splitting implementation.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@linux.intel.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/vm/transhuge.txt
arch/x86/kernel/vm86_32.c
fs/proc/task_mmu.c
include/linux/huge_mm.h
mm/huge_memory.c
mm/memory.c
mm/mempolicy.c
mm/mprotect.c
mm/mremap.c
mm/pagewalk.c