diff options
| author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-12-12 16:50:59 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-12 20:38:31 -0500 |
| commit | e180377f1ae48b3cbc559c9875d9b038f7f000c6 (patch) | |
| tree | c51e0db181acc0372479bce5cd68b99abca7d8bb /Documentation/vm | |
| parent | cad7f613c4d010e1d0f05c9a4fb33c7ae40ba115 (diff) | |
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>
Diffstat (limited to 'Documentation/vm')
| -rw-r--r-- | Documentation/vm/transhuge.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/vm/transhuge.txt b/Documentation/vm/transhuge.txt index f734bb2a78dc..8f5b41db314c 100644 --- a/Documentation/vm/transhuge.txt +++ b/Documentation/vm/transhuge.txt | |||
| @@ -276,7 +276,7 @@ unaffected. libhugetlbfs will also work fine as usual. | |||
| 276 | == Graceful fallback == | 276 | == Graceful fallback == |
| 277 | 277 | ||
| 278 | Code walking pagetables but unware about huge pmds can simply call | 278 | Code walking pagetables but unware about huge pmds can simply call |
| 279 | split_huge_page_pmd(mm, pmd) where the pmd is the one returned by | 279 | split_huge_page_pmd(vma, addr, pmd) where the pmd is the one returned by |
| 280 | pmd_offset. It's trivial to make the code transparent hugepage aware | 280 | pmd_offset. It's trivial to make the code transparent hugepage aware |
| 281 | by just grepping for "pmd_offset" and adding split_huge_page_pmd where | 281 | by just grepping for "pmd_offset" and adding split_huge_page_pmd where |
| 282 | missing after pmd_offset returns the pmd. Thanks to the graceful | 282 | missing after pmd_offset returns the pmd. Thanks to the graceful |
| @@ -299,7 +299,7 @@ diff --git a/mm/mremap.c b/mm/mremap.c | |||
| 299 | return NULL; | 299 | return NULL; |
| 300 | 300 | ||
| 301 | pmd = pmd_offset(pud, addr); | 301 | pmd = pmd_offset(pud, addr); |
| 302 | + split_huge_page_pmd(mm, pmd); | 302 | + split_huge_page_pmd(vma, addr, pmd); |
| 303 | if (pmd_none_or_clear_bad(pmd)) | 303 | if (pmd_none_or_clear_bad(pmd)) |
| 304 | return NULL; | 304 | return NULL; |
| 305 | 305 | ||
