[PATCH v4 0/4] page_owner: Fix refcount imbalance and print fixup

From: Oscar Salvador
Date: Thu Apr 04 2024 - 03:05:56 EST


This series consists of a refactoring/correctness of updating the metadata
of tail pages, a couple of fixups for the refcounting part and a fixup for
the stack_start() function.

>From this series on, instead of counting the stacks, we count the outstanding
nr_base_pages each stack has, which gives us a much better memory overview.
The other fixup is for the migration part.

A more detailed explanation can be found in the changelog of the respective
patches.

v3 -> v4:
- Fix some typos remarked by Vlastimil
- Add Reviewed-by tag from Vlastimil and Tested-by tag from Alexandre Ghiti
(closed a syzbot report for RISC)

Oscar Salvador (4):
mm,page_owner: Update metadata for tail pages
mm,page_owner: Fix refcount imbalance
mm,page_owner: Fix accounting of pages when migrating
mm,page_owner: Fix printing of stack records

Documentation/mm/page_owner.rst | 73 +++++++------
mm/page_owner.c | 188 ++++++++++++++++++--------------
2 files changed, 147 insertions(+), 114 deletions(-)

--
2.44.0