[PATCH v3 v3 0/2] add blocks_allocated to mb_stats and clear mb_stats

From: Baolin Liu

Date: Tue Apr 21 2026 - 21:53:32 EST


The series contains two patches:
- add blocks_allocated to /proc/fs/ext4/<dev>/mb_stats
- allow writing 0 to /proc/fs/ext4/<dev>/mb_stats to clear the current
mballoc statistics

Changes since v2:
- Add mb_stats documentation to patch 2
- Add Reviewed-by tags

Baolin Liu (2):
ext4: add blocks_allocated to mb_stats output
ext4: allow clearing mballoc stats through mb_stats

Documentation/admin-guide/ext4.rst | 5 ++++
Documentation/filesystems/proc.rst | 3 +++
fs/ext4/ext4.h | 1 +
fs/ext4/mballoc.c | 31 +++++++++++++++++++++++
fs/ext4/sysfs.c | 40 ++++++++++++++++++++++++++++--
5 files changed, 78 insertions(+), 2 deletions(-)

--
2.51.0