[RFC PATCH 0/2] Remove compound_pagelist from khugepaged

From: Vishal Moola (Oracle)
Date: Fri Sep 22 2023 - 15:36:52 EST


Currently, khugepaged builds and uses a list to properly account for
compound pages. Now we can use folios to account for these compound pages
as singular large folio units instead.

Removing compound_pagelist streamlines the scanning/freeing code in
khugepaged, as well as reduces the overall size of the kernel.

Vishal Moola (Oracle) (2):
mm/khugepaged: Convert __collapse_huge_page_isolate() to use folios
mm/khugepaged: Remove compound_pagelist

mm/khugepaged.c | 116 ++++++++++++++++--------------------------------
1 file changed, 38 insertions(+), 78 deletions(-)

--
2.40.1