public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 v2 0/2] add blocks_allocated to mb_stats and clear mb_stats
@ 2026-04-19  6:31 Baolin Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Baolin Liu @ 2026-04-19  6:31 UTC (permalink / raw)
  To: tytso, adilger.kernel
  Cc: wangguanyu, liubaolin12138, yi.zhang, ritesh.list, ojaswin,
	linux-ext4, linux-kernel

This series improves ext4 mballoc statistics in two small ways.

The first patch adds blocks_allocated to /proc/fs/ext4/<dev>/mb_stats,
so that the proc output covers the same mballoc summary counters
printed at unmount time.

The second patch makes /proc/fs/ext4/<dev>/mb_stats writable
and allows writing 0 to clear the current runtime mballoc statistics.

Changes since v1: 
 - Split blocks_allocated reporting and statistics clearing into two patches
 - Drop the separate mb_stats_clear sysfs node
 - Make /proc/fs/ext4/<dev>/mb_stats writable instead

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

 fs/ext4/ext4.h    |  1 +
 fs/ext4/mballoc.c | 31 +++++++++++++++++++++++++++++++
 fs/ext4/sysfs.c   | 40 ++++++++++++++++++++++++++++++++++++++--
 3 files changed, 70 insertions(+), 2 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 2+ messages in thread
* [PATCH v2 v2 0/2] add blocks_allocated to mb_stats and clear mb_stats
@ 2026-04-19  6:34 Baolin Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Baolin Liu @ 2026-04-19  6:34 UTC (permalink / raw)
  To: tytso, adilger.kernel
  Cc: wangguanyu, liubaolin12138, yi.zhang, ritesh.list, ojaswin,
	linux-ext4, linux-kernel

This series improves ext4 mballoc statistics in two small ways.

The first patch adds blocks_allocated to /proc/fs/ext4/<dev>/mb_stats,
so that the proc output covers the same mballoc summary counters
printed at unmount time.

The second patch makes /proc/fs/ext4/<dev>/mb_stats writable
and allows writing 0 to clear the current runtime mballoc statistics.

Changes since v1: 
 - Split blocks_allocated reporting and statistics clearing into two patches
 - Drop the separate mb_stats_clear sysfs node
 - Make /proc/fs/ext4/<dev>/mb_stats writable instead

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

 fs/ext4/ext4.h    |  1 +
 fs/ext4/mballoc.c | 31 +++++++++++++++++++++++++++++++
 fs/ext4/sysfs.c   | 40 ++++++++++++++++++++++++++++++++++++++--
 3 files changed, 70 insertions(+), 2 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-19  6:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-19  6:31 [PATCH v2 v2 0/2] add blocks_allocated to mb_stats and clear mb_stats Baolin Liu
  -- strict thread matches above, loose matches on Subject: below --
2026-04-19  6:34 Baolin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox