[PATCH v2 0/3] mm/zsmalloc: remove CONFIG_ZSMALLOC_STAT
From: Xueyuan Chen
Date: Mon Nov 09 2026 - 08:02:23 EST
Drop CONFIG_ZSMALLOC_STAT instead of making the counters conditional. The
option only controls the debugfs interface, while the class counters are
updated unconditionally. Removing it simplifies the code.
Following Nhat's suggestion, remove CONFIG_ZSMALLOC_STAT and rely on
the existing debugfs API stubs when CONFIG_DEBUG_FS=n.
---
Changes in v2:
- Drop CONFIG_ZSMALLOC_STAT instead of making the counters conditional.
- Update configuration files and documentation.
- Link to v1: https://patch.msgid.link/20261106-zsmalloc_stat-v1-1-b574f4714adf@xxxxxxxxx
---
Xueyuan Chen (3):
mm/zsmalloc: remove CONFIG_ZSMALLOC_STAT
mm: remove CONFIG_ZSMALLOC_STAT
docs: zsmalloc: describe statistics with CONFIG_DEBUG_FS
Documentation/mm/zsmalloc.rst | 2 +-
Documentation/translations/zh_CN/mm/zsmalloc.rst | 2 +-
arch/s390/configs/debug_defconfig | 2 +-
arch/s390/configs/defconfig | 2 +-
drivers/gpu/drm/ci/arm.config | 2 +-
drivers/gpu/drm/ci/arm64.config | 2 +-
drivers/gpu/drm/ci/x86_64.config | 2 +-
mm/Kconfig | 9 -------
mm/zsmalloc.c | 33 ++----------------------
9 files changed, 9 insertions(+), 47 deletions(-)
---
base-commit: fa4ad798f6f681031775266044ba1b0cf3c670bd
--
Best regards,
Xueyuan