Skip to content

RFC move PG_slab flag to page_type

Hyeonggon Yoo linux-mm lkml oe-kbuild-all 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest4 patches 19 repliesIn review
  2. v2 RFC3 patches 11 repliesSuperseded
  3. v11 patch 7 repliesSuperseded

Changes in v3 from the cover letter

- dropped show_page_types() in a thought that it is not interesting to track refcount of non-usermapped pages.
- added patch 1 that cleans up MF_MSG_SLAB in hwpoison
- split implementation and application of %pGt to separate patches.
- instead of printing "no page_type for ..." in %pGt, just print '0x<value>()' for a page that does not use page_type field.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm/hwpoison: remove MF_MSG_SLAB from action_page_typesmm/memory-failure.c+0 -104 replies
2/4mm: move PG_slab flag to page_typefs/proc/page.c include/linux/mm_types.h include/linux/page-flags.h +4 more+98 -549 replies
3/4mm, printk: introduce new format %pGt for page_typeDocumentation/core-api/printk-formats.rst include/trace/events/mmflags.h lib/test_printf.c +3 more+62 -16 replies
4/4mm/debug: use %pGt to print page_type in dump_page()mm/debug.c+2 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC v3 0/4] move PG_slab flag to page_type

RFC v2:
https://lore.kernel.org/linux-mm/[email protected]/

This patch series moves PG_slab page flag to page_type, freeing one bit in page->flags and introduces %pGt format that prints human-readable page_type like %pGp for printing page flags.

See changelog of patch 2 for more implementation details.

Thanks everyone that gave valuable comments.

v2 -> v3:
- dropped show_page_types() in a thought that it is not interesting to track refcount of non-usermapped pages.
- added patch 1 that cleans up MF_MSG_SLAB in hwpoison
- split implementation and application of %pGt to separate patches.
- instead of printing "no page_type for ..." in %pGt, just print '0x<value>()' for a page that does not use page_type field.

Hyeonggon Yoo (4):
mm/hwpoison: remove MF_MSG_SLAB from action_page_types
mm: move PG_slab flag to page_type
mm, printk: introduce new format %pGt for page_type mm/debug: use %pGt to print page_type in dump_page()

 Documentation/core-api/printk-formats.rst |  3 +-
 fs/proc/page.c                            | 13 ++--
 include/linux/mm_types.h                  | 11 ++--
 include/linux/page-flags.h                | 77 ++++++++++++++++-------
 include/trace/events/mmflags.h            |  8 ++-
 kernel/crash_core.c                       |  3 +-
 lib/test_printf.c                         | 26 ++++++++
 lib/vsprintf.c                            | 21 +++++++
 mm/debug.c                                |  7 +++
 mm/internal.h                             |  1 +
 mm/memory-failure.c                       | 10 ---
 mm/slab.c                                 | 44 ++++++++-----
 mm/slab.h                                 |  3 +-
 13 files changed, 162 insertions(+), 65 deletions(-)
Signature · 1 line
2.32.0