The patch titled Subject: numa: fix /proc/<pid>/numa_maps on s390 has been removed from the -mm tree. Its filename was numa-fix-proc-pid-numa_maps-on-s390.patch This patch was dropped because an updated version will be merged ------------------------------------------------------ From: Michael Holzheu <holzheu@xxxxxxxxxxxxxxxxxx> Subject: numa: fix /proc/<pid>/numa_maps on s390 When working with huge page pmds in general is not valid to directly use pte functions like pte_present() because the hardware bit layout of pmds and ptes can be different. This is the case on s390. Therefore we have to convert the pmds first into a valid pte encoding with huge_ptep_get(). So add the two missing functions calls to do this. Signed-off-by: Michael Holzheu <holzheu@xxxxxxxxxxxxxxxxxx> Reviewed-by: Gerald Schaefer <gerald.schaefer@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/task_mmu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff -puN fs/proc/task_mmu.c~numa-fix-proc-pid-numa_maps-on-s390 fs/proc/task_mmu.c --- a/fs/proc/task_mmu.c~numa-fix-proc-pid-numa_maps-on-s390 +++ a/fs/proc/task_mmu.c @@ -1524,7 +1524,7 @@ static int gather_pte_stats(pmd_t *pmd, ptl = pmd_trans_huge_lock(pmd, vma); if (ptl) { - pte_t huge_pte = *(pte_t *)pmd; + pte_t huge_pte = huge_ptep_get((pte_t *)pmd); struct page *page; page = can_gather_numa_stats(huge_pte, vma, addr); @@ -1552,18 +1552,19 @@ static int gather_pte_stats(pmd_t *pmd, static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, unsigned long addr, unsigned long end, struct mm_walk *walk) { + pte_t huge_pte = huge_ptep_get(pte); struct numa_maps *md; struct page *page; - if (!pte_present(*pte)) + if (!pte_present(huge_pte)) return 0; - page = pte_page(*pte); + page = pte_page(huge_pte); if (!page) return 0; md = walk->private; - gather_stats(page, md, pte_dirty(*pte), 1); + gather_stats(page, md, pte_dirty(huge_pte), 1); return 0; } _ Patches currently in -mm which might be from holzheu@xxxxxxxxxxxxxxxxxx are -- 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