The patch titled Subject: mm-clarify-that-the-function-operates-on-hugepage-pte-v5 has been added to the -mm tree. Its filename is mm-clarify-that-the-function-operates-on-hugepage-pte-v5.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-clarify-that-the-function-operates-on-hugepage-pte-v5.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-clarify-that-the-function-operates-on-hugepage-pte-v5.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Aneesh Kumar K.V" <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Subject: mm-clarify-that-the-function-operates-on-hugepage-pte-v5 Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/s390/include/asm/pgtable.h | 2 +- include/asm-generic/pgtable.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff -puN arch/s390/include/asm/pgtable.h~mm-clarify-that-the-function-operates-on-hugepage-pte-v5 arch/s390/include/asm/pgtable.h --- a/arch/s390/include/asm/pgtable.h~mm-clarify-that-the-function-operates-on-hugepage-pte-v5 +++ a/arch/s390/include/asm/pgtable.h @@ -1552,7 +1552,7 @@ static inline pmd_t pmdp_collapse_flush( unsigned long address, pmd_t *pmdp) { - return pmdp_get_and_clear(vma->vm_mm, address, pmdp); + return pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); } #define pmdp_collapse_flush pmdp_collapse_flush diff -puN include/asm-generic/pgtable.h~mm-clarify-that-the-function-operates-on-hugepage-pte-v5 include/asm-generic/pgtable.h --- a/include/asm-generic/pgtable.h~mm-clarify-that-the-function-operates-on-hugepage-pte-v5 +++ a/include/asm-generic/pgtable.h @@ -195,10 +195,14 @@ static inline pmd_t pmdp_collapse_flush( unsigned long address, pmd_t *pmdp) { + /* + * pmd and hugepage pte formats are the same. So we could use the same + * function. + */ pmd_t pmd; VM_BUG_ON(address & ~HPAGE_PMD_MASK); VM_BUG_ON(pmd_trans_huge(*pmdp)); - pmd = pmdp_get_and_clear(vma->vm_mm, address, pmdp); + pmd = pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE); return pmd; } _ Patches currently in -mm which might be from aneesh.kumar@xxxxxxxxxxxxxxxxxx are origin.patch tracing-mm-dont-trace-kmem_cache_free-on-offline-cpus.patch mm-hugetlb-reduce-arch-dependent-code-about-huge_pmd_unshare.patch mm-thp-split-out-pmd-collpase-flush-into-a-separate-functions.patch mm-thp-split-out-pmd-collpase-flush-into-a-separate-functions-fix.patch mm-thp-split-out-pmd-collpase-flush-into-a-separate-functions-fix-2.patch powerpc-mm-use-generic-version-of-pmdp_clear_flush.patch powerpc-mm-use-generic-version-of-pmdp_clear_flush-v5.patch mm-clarify-that-the-function-operateds-on-hugepage-pte.patch mm-clarify-that-the-function-operates-on-hugepage-pte-v5.patch page-flags-trivial-cleanup-for-pagetrans-helpers.patch page-flags-introduce-page-flags-policies-wrt-compound-pages.patch page-flags-define-pg_locked-behavior-on-compound-pages.patch page-flags-define-behavior-of-fs-io-related-flags-on-compound-pages.patch page-flags-define-behavior-of-lru-related-flags-on-compound-pages.patch page-flags-define-behavior-slb-related-flags-on-compound-pages.patch page-flags-define-behavior-of-xen-related-flags-on-compound-pages.patch page-flags-define-pg_reserved-behavior-on-compound-pages.patch page-flags-define-pg_swapbacked-behavior-on-compound-pages.patch page-flags-define-pg_swapcache-behavior-on-compound-pages.patch page-flags-define-pg_mlocked-behavior-on-compound-pages.patch page-flags-define-pg_uncached-behavior-on-compound-pages.patch page-flags-define-pg_uptodate-behavior-on-compound-pages.patch page-flags-look-on-head-page-if-the-flag-is-encoded-in-page-mapping.patch mm-sanitize-page-mapping-for-tail-pages.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html