Skip to content

RFC mm: introduce snapshot_page()

Luiz Capitulino linux-mm lkml oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm: introduce snapshot_page()include/linux/mm.h mm/debug.c mm/util.c+95 -380 replies
2/3proc: kpagecount: use snapshot_page()fs/proc/page.c+17 -40 replies
3/3fs: stable_page_flags(): use snapshot_page()fs/proc/page.c+14 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/3] mm: introduce snapshot_page()

Hi,

This series introduces snapshot_page(), a helper function that can be used to create a snapshot of a struct page and its associated struct folio.

This function is intended to help callers with a consistent view of a a folio while reducing the chance of encountering partially updated or inconsistent state, such as during folio splitting which could lead to crashes and BUG_ON()s being triggered.

This series is on top of latest Linus tree (9afe652958c3).

Luiz Capitulino (3):
mm: introduce snapshot_page()
proc: kpagecount: use snapshot_page()
fs: stable_page_flags(): use snapshot_page()

 fs/proc/page.c     | 46 ++++++++++++++++++++----------
 include/linux/mm.h | 20 +++++++++++++
 mm/debug.c         | 42 +++------------------------
 mm/util.c          | 71 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 126 insertions(+), 53 deletions(-)
Signature · 1 line
2.49.0