mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6 v6 0/3] ext4: improve mballoc statistics reporting and control
@ 2026-05-24  1:54 Baolin Liu
  2026-05-24  1:54 ` [PATCH v6 v6 1/3] ext4: add blocks_allocated to mb_stats output Baolin Liu
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Baolin Liu @ 2026-05-24  1:54 UTC (permalink / raw)
  To: corbet, skhan, tytso, adilger.kernel, libaokun, jack, ojaswin,
	ritesh.list, yi.zhang
  Cc: linux-ext4, linux-kernel, Baolin Liu

From: Baolin Liu <liubaolin@kylinos.cn>

This series improves mballoc statistics reporting and control by adding
blocks_allocated to /proc/fs/ext4/<dev>/mb_stats, using
READ_ONCE()/WRITE_ONCE() for concurrent accesses to s_mb_stats, and
allowing mballoc stats to be controlled through
/proc/fs/ext4/<dev>/mb_stats.

Changes in v6:
 - Serialize proc and sysfs updates to s_mb_stats with a mutex so that
   clearing mb_stats through the proc control path cannot race with
   concurrent administrative writes.

Baolin Liu (3):
  ext4: add blocks_allocated to mb_stats output
  ext4: use READ_ONCE/WRITE_ONCE for s_mb_stats
  ext4: allow controlling mballoc stats through proc mb_stats

 Documentation/ABI/testing/sysfs-fs-ext4 |  3 +-
 Documentation/admin-guide/ext4.rst      |  9 ++-
 Documentation/filesystems/proc.rst      | 13 +---
 fs/ext4/ext4.h                          |  2 +
 fs/ext4/mballoc.c                       | 58 ++++++++++++++----
 fs/ext4/sysfs.c                         | 80 ++++++++++++++++++++++++-
 6 files changed, 135 insertions(+), 30 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2026-06-24 10:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-24  1:54 [PATCH v6 v6 0/3] ext4: improve mballoc statistics reporting and control Baolin Liu
2026-05-24  1:54 ` [PATCH v6 v6 1/3] ext4: add blocks_allocated to mb_stats output Baolin Liu
2026-05-24  1:54 ` [PATCH v6 v6 2/3] ext4: use READ_ONCE/WRITE_ONCE for s_mb_stats Baolin Liu
2026-05-24  1:54 ` [PATCH v6 v6 3/3] ext4: allow controlling mballoc stats through proc mb_stats Baolin Liu
     [not found] ` <1816234d.8a1b.19ef8ff3f2e.Coremail.liubaolin12138@163.com>
2026-06-24  9:52   ` [PATCH v6 v6 0/3] ext4: improve mballoc statistics reporting and control liubaolin
2026-06-24  9:59   ` liubaolin
2026-06-24 10:02     ` liubaolin

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

all inboxes | Powered by JetHome®