Skip to contentSkip to conversation

openrisc-add-missing-pgtable_page_ctor-dtor-calls.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 15, 2013 Openrisc architecture

lore
Share & tools
lore
#0 lore raw

Subject: [merged] openrisc-add-missing-pgtable_page_ctor-dtor-calls.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 15 Nov 2013 12:07:54 -0800

The patch titled
Subject: openrisc: add missing pgtable_page_ctor/dtor calls
has been removed from the -mm tree. Its filename was
openrisc-add-missing-pgtable_page_ctor-dtor-calls.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: "Kirill A. Shutemov" <[email protected]>
Subject: openrisc: add missing pgtable_page_ctor/dtor calls

It will fix NR_PAGETABLE accounting. It's also required if the arch is going ever support split ptl.

---

 arch/openrisc/include/asm/pgalloc.h |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
arch/openrisc/include/asm/pgalloc.h renamed from arch/openrisc/include/asm/pgalloc.h~openrisc-add-missing-pgtable_page_ctor-dtor-calls +8 -2
diff -puN arch/openrisc/include/asm/pgalloc.h~openrisc-add-missing-pgtable_page_ctor-dtor-calls arch/openrisc/include/asm/pgalloc.h
@@ -78,8 +78,13 @@ static inline struct page *pte_alloc_one
 {
 	struct page *pte;
 	pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0);
-	if (pte)
-		clear_page(page_address(pte));
+	if (!pte)
+		return NULL;
+	clear_page(page_address(pte));
+	if (!pgtable_page_ctor(pte)) {
+		__free_page(pte);
+		return NULL;
+	}
 	return pte;
 }
 
@@ -90,6 +95,7 @@ static inline void pte_free_kernel(struc
 
 static inline void pte_free(struct mm_struct *mm, struct page *pte)
 {
+	pgtable_page_dtor(pte);
 	__free_page(pte);
 }
 

_

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

origin.patch x86-mm-get-aslr-work-for-hugetlb-mappings.patch mm-drop-actor-argument-of-do_generic_file_read-fix.patch