diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2011-01-13 18:47:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 20:32:44 -0500 |
commit | f2d6bfe9ff0acec30b713614260e78b03d20e909 (patch) | |
tree | 835dd9f4167513d94ae542cf92347ea98bff5ddc /arch/x86/mm | |
parent | 5f24ce5fd34c3ca1b3d10d30da754732da64d5c0 (diff) |
thp: add x86 32bit support
Add support for transparent hugepages to x86 32bit.
Share the same VM_ bitflag for VM_MAPPED_COPY. mm/nommu.c will never
support transparent hugepages.
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/pgtable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c index 65e92d58f942..500242d3c96d 100644 --- a/arch/x86/mm/pgtable.c +++ b/arch/x86/mm/pgtable.c | |||
@@ -362,7 +362,7 @@ int pmdp_test_and_clear_young(struct vm_area_struct *vma, | |||
362 | 362 | ||
363 | if (pmd_young(*pmdp)) | 363 | if (pmd_young(*pmdp)) |
364 | ret = test_and_clear_bit(_PAGE_BIT_ACCESSED, | 364 | ret = test_and_clear_bit(_PAGE_BIT_ACCESSED, |
365 | (unsigned long *) &pmdp->pmd); | 365 | (unsigned long *)pmdp); |
366 | 366 | ||
367 | if (ret) | 367 | if (ret) |
368 | pmd_update(vma->vm_mm, addr, pmdp); | 368 | pmd_update(vma->vm_mm, addr, pmdp); |
@@ -404,7 +404,7 @@ void pmdp_splitting_flush(struct vm_area_struct *vma, | |||
404 | int set; | 404 | int set; |
405 | VM_BUG_ON(address & ~HPAGE_PMD_MASK); | 405 | VM_BUG_ON(address & ~HPAGE_PMD_MASK); |
406 | set = !test_and_set_bit(_PAGE_BIT_SPLITTING, | 406 | set = !test_and_set_bit(_PAGE_BIT_SPLITTING, |
407 | (unsigned long *)&pmdp->pmd); | 407 | (unsigned long *)pmdp); |
408 | if (set) { | 408 | if (set) { |
409 | pmd_update(vma->vm_mm, address, pmdp); | 409 | pmd_update(vma->vm_mm, address, pmdp); |
410 | /* need tlb flush only to serialize against gup-fast */ | 410 | /* need tlb flush only to serialize against gup-fast */ |