* [PATCH -next] ext4: cleanup ext4_fc_del()
@ 2022-03-16 13:01 Yu Liao
0 siblings, 0 replies; only message in thread
From: Yu Liao @ 2022-03-16 13:01 UTC (permalink / raw)
To: linux-kernel; +Cc: tytso, liaoyu15, liwei391
Since the local variable sbi and EXT4_SB(inode->i_sb) are equivalent,
simply replace EXT4_SB(inode->i_sb) with sbi.
Signed-off-by: Yu Liao <liaoyu15@huawei.com>
---
fs/ext4/fast_commit.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/ext4/fast_commit.c b/fs/ext4/fast_commit.c
index 3d72565ec6e8..51ff3c8d05d5 100644
--- a/fs/ext4/fast_commit.c
+++ b/fs/ext4/fast_commit.c
@@ -284,13 +284,13 @@ void ext4_fc_del(struct inode *inode)
struct ext4_fc_dentry_update *fc_dentry;
if (!test_opt2(inode->i_sb, JOURNAL_FAST_COMMIT) ||
- (EXT4_SB(inode->i_sb)->s_mount_state & EXT4_FC_REPLAY))
+ (sbi->s_mount_state & EXT4_FC_REPLAY))
return;
restart:
- spin_lock(&EXT4_SB(inode->i_sb)->s_fc_lock);
+ spin_lock(&sbi->s_fc_lock);
if (list_empty(&ei->i_fc_list) && list_empty(&ei->i_fc_dilist)) {
- spin_unlock(&EXT4_SB(inode->i_sb)->s_fc_lock);
+ spin_unlock(&sbi->s_fc_lock);
return;
}
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-16 12:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-16 13:01 [PATCH -next] ext4: cleanup ext4_fc_del() Yu Liao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).