OSDN Git Service

ext4: return early for non-eligible fast_commit track events
authorRitesh Harjani <riteshh@linux.ibm.com>
Sat, 12 Mar 2022 05:39:50 +0000 (11:09 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Mar 2022 21:44:46 +0000 (17:44 -0400)
commit78be0471da4e9fff874307d73d68f0173fa6a154
tree52546a0a7a72c94e12a5553fc65ea4fd5b79b54c
parent7f142440847480838e0c4b3092f24455cec111a7
ext4: return early for non-eligible fast_commit track events

Currently ext4_fc_track_template() checks, whether the trace event
path belongs to replay or does sb has ineligible set, if yes it simply
returns. This patch pulls those checks before calling
ext4_fc_track_template() in the callers of ext4_fc_track_template().

[ Add checks to ext4_rename() which calls the __ext4_fc_track_*()
  functions directly. -- TYT ]

Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/3cd025d9c490218a92e6d8fb30b6123e693373e3.1647057583.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c
fs/ext4/namei.c