Skip to contentSkip to conversation

mm: No need to check pcp page when free it to buddy

PATCH Superseded zhaoyang.huang 2 participants 2 messages Sep 14, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: No need to check pcp page when free it to buddy

From: Zhaoyang Huang <[email protected]>

The pages on pcp list have been checked the validity from each entrance. It is no need to check it again when free them back to buddy.

---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +1 -1
index e008a3d..131536e 100644
@@ -1445,7 +1445,7 @@ static bool free_pcp_prepare(struct page *page, unsigned int order)
 
 static bool bulkfree_pcp_prepare(struct page *page)
 {
-	return check_free_page(page);
+	return false;
 }
 #endif /* CONFIG_DEBUG_VM */
 
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 5 lines · On Wed, 14 Sep 2022 18:53:40 +0800 "zhaoyang.huang"…

From: Zhaoyang Huang <[email protected]>

The pages on pcp list have been checked the validity from each entrance. It is no need to check it again when free them back to buddy.

I'm not sure what "from each entrance" means. Please identify the codesite where this other check is occurring?

Quoted 16 lines
---
 mm/page_alloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c +1 -1
index e008a3d..131536e 100644
@@ -1445,7 +1445,7 @@ static bool free_pcp_prepare(struct page *page, unsigned int order)
 
 static bool bulkfree_pcp_prepare(struct page *page)
 {
-	return check_free_page(page);
+	return false;
 }
 #endif /* CONFIG_DEBUG_VM */