Skip to contentSkip to conversation

+ arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Feb 10, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

Subject: + arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 10 Feb 2014 14:42:22 -0800

The patch titled
Subject: arch/powerpc/mm/subpage-prot.c: use walk_page_vma() instead of walk_page_range()
has been added to the -mm tree. Its filename is
arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range.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: Naoya Horiguchi <[email protected]>
Subject: arch/powerpc/mm/subpage-prot.c: use walk_page_vma() instead of walk_page_range()

We don't have to use mm_walk->private to pass vma to the callback function because of mm_walk->vma.

Cc Matt Mackall <[email protected]>
Cc Cliff Wickman <[email protected]>
Cc KOSAKI Motohiro <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>
Cc Michal Hocko <[email protected]>
Cc "Aneesh Kumar K.V" <[email protected]>
Cc Pavel Emelyanov <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>

---

 arch/powerpc/mm/subpage-prot.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/powerpc/mm/subpage-prot.c renamed from arch/powerpc/mm/subpage-prot.c~arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range +2 -4
diff -puN arch/powerpc/mm/subpage-prot.c~arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range arch/powerpc/mm/subpage-prot.c
@@ -134,7 +134,7 @@ static void subpage_prot_clear(unsigned
 static int subpage_walk_pmd_entry(pmd_t *pmd, unsigned long addr,
 				  unsigned long end, struct mm_walk *walk)
 {
-	struct vm_area_struct *vma = walk->private;
+	struct vm_area_struct *vma = walk->vma;
 	split_huge_page_pmd(vma, addr, pmd);
 	return 0;
 }
@@ -163,9 +163,7 @@ static void subpage_mark_vma_nohuge(stru
 		if (vma->vm_start >= (addr + len))
 			break;
 		vma->vm_flags |= VM_NOHUGEPAGE;
-		subpage_proto_walk.private = vma;
-		walk_page_range(vma->vm_start, vma->vm_end,
-				&subpage_proto_walk);
+		walk_page_vma(vma, &subpage_proto_walk);
 		vma = vma->vm_next;
 	}
 }

_

Patches currently in -mm which might be from [email protected] are

mm-memory-failurec-move-refcount-only-in-mf_count_increased.patch mm-hugetlb-unify-region-structure-handling.patch mm-hugetlb-improve-cleanup-resv_map-parameters.patch mm-hugetlb-fix-race-in-region-tracking.patch mm-hugetlb-remove-resv_map_put.patch mm-hugetlb-use-vma_resv_map-map-types.patch mm-hugetlb-improve-page-fault-scalability.patch mm-hugetlb-improve-page-fault-scalability-fix.patch pagewalk-update-page-table-walker-core.patch pagewalk-add-walk_page_vma.patch smaps-redefine-callback-functions-for-page-table-walker.patch clear_refs-redefine-callback-functions-for-page-table-walker.patch pagemap-redefine-callback-functions-for-page-table-walker.patch numa_maps-redefine-callback-functions-for-page-table-walker.patch memcg-redefine-callback-functions-for-page-table-walker.patch madvise-redefine-callback-functions-for-page-table-walker.patch arch-powerpc-mm-subpage-protc-use-walk_page_vma-instead-of-walk_page_range.patch pagewalk-remove-argument-hmask-from-hugetlb_entry.patch mempolicy-apply-page-table-walker-on-queue_pages_range.patch