]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: do not call FC trace event in ext4_fc_commit() if FS does not support FC
authorRitesh Harjani <riteshh@linux.ibm.com>
Sat, 12 Mar 2022 05:39:49 +0000 (11:09 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Mar 2022 02:26:08 +0000 (21:26 -0500)
commitd4f0ea57c5b12846e9b53de8000ff8225aea2bbb
tree200ac4904d0ba77aa73b1ee70c311a8c93823671
parent37f1dda3a4ad111384f83c5854eca79ccc5d4466
ext4: do not call FC trace event in ext4_fc_commit() if FS does not support FC

This just puts trace_ext4_fc_commit_start(sb) & ktime_get()
for measuring FC commit time, after the check of whether sb
supports JOURNAL_FAST_COMMIT or not.

Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Reviewed-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/d53cf3e535924ec0a1eb41a560e96561b0727e7a.1647057583.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c