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)
commit7f142440847480838e0c4b3092f24455cec111a7
tree200ac4904d0ba77aa73b1ee70c311a8c93823671
parent8cb5a30372ef5cf2b1d258fce1711d80f834740a
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