ext4: adjust fast commit disable judgement order in ext4_fc_track_inode
authorYe Bin <yebin10@huawei.com>
Fri, 16 Sep 2022 08:38:36 +0000 (16:38 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 1 Oct 2022 03:46:52 +0000 (23:46 -0400)
commite64e6ca90913b0dfe14bf7d529df0753a6746e23
tree4e0ac15518808418b48ad00ff925ce0af3f5b90f
parentb7b80a35fb51319223e1fbf84128b8e5ebb91f86
ext4: adjust fast commit disable judgement order in ext4_fc_track_inode

If fastcommit is already disabled, there isn't need to mark inode ineligible.
So move 'ext4_fc_disabled()' judgement bofore 'ext4_should_journal_data(inode)'
judgement which can avoid to do meaningless judgement.

Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220916083836.388347-3-yebin10@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c