RFC mm: introduce snapshot_page()
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm: introduce snapshot_page()include/ mm/ mm/ | +95 | 0 replies | |
| 2/3 | proc: kpagecount: use snapshot_page()fs/ | +17 | 0 replies | |
| 3/3 | fs: stable_page_flags(): use snapshot_page()fs/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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