mbox series

[0/5] Some khugepaged folio conversions

Message ID 20231016200510.7387-1-vishal.moola@gmail.com (mailing list archive)
Headers show
Series Some khugepaged folio conversions | expand

Message

Vishal Moola Oct. 16, 2023, 8:05 p.m. UTC
This patchset converts a number of functions to use folios. This cleans
up some khugepaged code and removes a large number of hidden
compound_head() calls.

---

The first 2 patches break khugepaged max_ptes_shared selftests as the
functions now use folio_estimated_sharers() instead of page_mapcount().
This is expected, although I'm uncertain as to whether that's actually a
bad thing or not. Some performance testing/feedback would be appreciated
on that front.

Vishal Moola (Oracle) (5):
  mm/khugepaged: Convert __collapse_huge_page_isolate() to use folios
  mm/khugepaged: Convert hpage_collapse_scan_pmd() to use folios
  mm/khugepaged: Convert is_refcount_suitable() to use folios
  mm/khugepaged: Convert alloc_charge_hpage() to use folios
  mm/khugepaged: Convert collapse_pte_mapped_thp() to use folios

 mm/khugepaged.c | 145 +++++++++++++++++++++++-------------------------
 1 file changed, 69 insertions(+), 76 deletions(-)