diff mbox series

[1/2] mm: Fix remove page fault assumption of compound page size

Message ID 20201001152259.14932-1-willy@infradead.org (mailing list archive)
State New, archived
Headers show
Series [1/2] mm: Fix remove page fault assumption of compound page size | expand

Commit Message

Matthew Wilcox Oct. 1, 2020, 3:22 p.m. UTC
Please fold into above patch.  page_order() and compound_order() are
different things.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 mm/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/mm/memory.c b/mm/memory.c
index 37437b56f66f..2f3babcd629a 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3747,7 +3747,7 @@  static vm_fault_t do_set_pmd(struct vm_fault *vmf, struct page *page)
 		return ret;
 
 	page = compound_head(page);
-	if (page_order(page) != HPAGE_PMD_ORDER)
+	if (compound_order(page) != HPAGE_PMD_ORDER)
 		return ret;
 
 	/*