]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit140947ec3db400fe19e9e846ca1b7f61715b61c9
tree4e0ac15518808418b48ad00ff925ce0af3f5b90f
parent3da336e15ea5238f1d5e0fa6f55085ec96927088
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