[PATCH v2 0/2] mm: remove unused vmstat and folio refcount helpers

From: Shivank Garg

Date: Tue Nov 10 2026 - 22:36:03 EST


This series removes ten static inline helpers from
include/linux/vmstat.h and include/linux/page_ref.h that have no users
left anywhere in the tree.

I found them with the kunused scripts [1], which I wrote with LLM's help.
The v1 cover letter [2] has more details on the scripts and how LLM was
used.

Changes in v2:
- Split v1 [2] up by MM tree, as David suggested. These two patches are
rebased on mm/core.git/for-next. Remaining patches will be sent
separately.
- No changes to the patches themselves.

[1] https://github.com/AMDESE/linux-mm/tree/shivank/kunused
[2] https://lore.kernel.org/r/20261026-unused-sym-v1-0-82ca2dceabe1@xxxxxxx

Signed-off-by: Shivank Garg <shivankg@xxxxxxx>
---
Shivank Garg (2):
mm/vmstat: remove unused folio stat helpers
mm: remove unused folio refcount helpers

include/linux/page_ref.h | 24 ------------------------
include/linux/vmstat.h | 36 ------------------------------------
2 files changed, 60 deletions(-)
---
base-commit: 94c0b03721e5a7187b7a017a18f58a50cee4f29e
change-id: 20261109-unused-sym-core-08c79d42936b

Best regards,
--
Shivank Garg <shivankg@xxxxxxx>