Skip to content

Commit 27349b4

Browse files
Dan Carpentertytso
authored andcommitted
ext4: cleanup variable name in ext4_fc_del()
The variables "&EXT4_SB(inode->i_sb)->s_fc_lock" and "&sbi->s_fc_lock" are the same lock. This function uses a mix of both, which is a bit unsightly and confuses Smatch. Signed-off-by: Dan Carpenter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 867b739 commit 27349b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/ext4/fast_commit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ void ext4_fc_del(struct inode *inode)
291291
return;
292292

293293
restart:
294-
spin_lock(&EXT4_SB(inode->i_sb)->s_fc_lock);
294+
spin_lock(&sbi->s_fc_lock);
295295
if (list_empty(&ei->i_fc_list) && list_empty(&ei->i_fc_dilist)) {
296-
spin_unlock(&EXT4_SB(inode->i_sb)->s_fc_lock);
296+
spin_unlock(&sbi->s_fc_lock);
297297
return;
298298
}
299299

0 commit comments

Comments
 (0)