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