mbox series

[0/5] Remove PageKsm()

Message ID 20241002152533.1350629-1-willy@infradead.org (mailing list archive)
Headers show
Series Remove PageKsm() | expand

Message

Matthew Wilcox Oct. 2, 2024, 3:25 p.m. UTC
The KSM flag is almost always tested on the folio rather than on the page.
This series removes the final users of PageKsm() and makes the flag only
testable on the folio.

Matthew Wilcox (Oracle) (5):
  ksm: Use a folio in try_to_merge_one_page()
  ksm: Convert cmp_and_merge_page() to use a folio
  ksm: Convert should_skip_rmap_item() to take a folio
  mm: Add PageAnonNotKsm()
  mm: Remove PageKsm()

 include/linux/page-flags.h | 18 ++++----
 mm/internal.h              |  2 +-
 mm/ksm.c                   | 93 +++++++++++++++++++-------------------
 3 files changed, 58 insertions(+), 55 deletions(-)