Skip to content

Commit 447bac3

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
thp: remove HPAGE_PMD_ORDER minimum assertion
We now handle order-1 folios correctly, so we don't need this assertion any more. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent c961bdd commit 447bac3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

mm/huge_memory.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -740,11 +740,6 @@ static int __init hugepage_init(void)
740740
* hugepages can't be allocated by the buddy allocator
741741
*/
742742
MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER > MAX_PAGE_ORDER);
743-
/*
744-
* we use page->mapping and page->index in second tail page
745-
* as list_head: assuming THP order >= 2
746-
*/
747-
MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER < 2);
748743

749744
err = hugepage_init_sysfs(&hugepage_kobj);
750745
if (err)

0 commit comments

Comments
 (0)