Please fold into above patch. page_order() and compound_order() are different things. Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /* -- 2.28.0