diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2015-06-24 19:57:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-24 20:49:44 -0400 |
commit | 8809aa2d28d74111ff2f1928edaa4e9845c97a7d (patch) | |
tree | f99977c0135ee38e8d7f1cea575cb2b9b7f3b669 /arch/sparc | |
parent | f28b6ff8c3d48af21354ef30164c8ccea69d5928 (diff) |
mm: clarify that the function operates on hugepage pte
We have confusing functions to clear pmd, pmd_clear_* and pmd_clear. Add
_huge_ to pmdp_clear functions so that we are clear that they operate on
hugepage pte.
We don't bother about other functions like pmdp_set_wrprotect,
pmdp_clear_flush_young, because they operate on PTE bits and hence
indicate they are operating on hugepage ptes
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/pgtable_64.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h index 2a52c91d2c8a..131d36fcd07a 100644 --- a/arch/sparc/include/asm/pgtable_64.h +++ b/arch/sparc/include/asm/pgtable_64.h | |||
@@ -865,10 +865,10 @@ static inline unsigned long pud_pfn(pud_t pud) | |||
865 | void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, | 865 | void tlb_batch_add(struct mm_struct *mm, unsigned long vaddr, |
866 | pte_t *ptep, pte_t orig, int fullmm); | 866 | pte_t *ptep, pte_t orig, int fullmm); |
867 | 867 | ||
868 | #define __HAVE_ARCH_PMDP_GET_AND_CLEAR | 868 | #define __HAVE_ARCH_PMDP_HUGE_GET_AND_CLEAR |
869 | static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm, | 869 | static inline pmd_t pmdp_huge_get_and_clear(struct mm_struct *mm, |
870 | unsigned long addr, | 870 | unsigned long addr, |
871 | pmd_t *pmdp) | 871 | pmd_t *pmdp) |
872 | { | 872 | { |
873 | pmd_t pmd = *pmdp; | 873 | pmd_t pmd = *pmdp; |
874 | set_pmd_at(mm, addr, pmdp, __pmd(0UL)); | 874 | set_pmd_at(mm, addr, pmdp, __pmd(0UL)); |