]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: fast commit: add lock_updates tracepoint
authorLi Chen <me@linux.beauty>
Fri, 15 May 2026 09:18:26 +0000 (17:18 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Jun 2026 14:26:36 +0000 (10:26 -0400)
commitd2f6e83bbbef31169ea363af4277f5c09c914eda
treecc483cae45c68841331cfc602e0806aa0337c12a
parent22d887e06a57261df58404c8dce50c4ef37549ed
ext4: fast commit: add lock_updates tracepoint

Commit-time fast commit snapshots run under jbd2_journal_lock_updates(),
so it is useful to quantify the time spent with updates locked and to
understand why snapshotting can fail.

Add a new tracepoint, ext4_fc_lock_updates, reporting the time spent in
the updates-locked window along with the number of snapshotted inodes
and ranges. Record the first snapshot failure reason in a stable snap_err
field for tooling.

Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://patch.msgid.link/20260515091829.194810-7-me@linux.beauty
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/fast_commit.c
include/trace/events/ext4.h