summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-04-29 21:00:55 +0200
committerAndrew Morton <akpm@linux-foundation.org>2024-05-07 19:37:02 +0200
commit447bac3d292fe934010bcf25e1edd539aa204988 (patch)
tree84190756628d518e06573e4801020eafe8c18b9a /mm
parentmm/vmscan: remove ignore_references argument of reclaim_folio_list() (diff)
downloadlinux-447bac3d292fe934010bcf25e1edd539aa204988.tar.xz
linux-447bac3d292fe934010bcf25e1edd539aa204988.zip
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/20240429190114.3126789-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/huge_memory.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index ccdcff73284a..317de2afd371 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -740,11 +740,6 @@ static int __init hugepage_init(void)
* hugepages can't be allocated by the buddy allocator
*/
MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER > MAX_PAGE_ORDER);
- /*
- * we use page->mapping and page->index in second tail page
- * as list_head: assuming THP order >= 2
- */
- MAYBE_BUILD_BUG_ON(HPAGE_PMD_ORDER < 2);
err = hugepage_init_sysfs(&hugepage_kobj);
if (err)