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

Baolin Liu
2026-04-22T01:52:30Z

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