Skip to contentSkip to conversation

ext4: use local variable journal when calling jbd2_journal_unlock_updates in ext4_freeze

PATCH New Joseph Qi 1 participant 1 message Jan 20, 2014 ext4 file system

lore
Share & tools
lore

Joseph Qi

author
#0 lore raw

PATCH 1/1 ext4: use local variable journal when calling jbd2_journal_unlock_updates in ext4_freeze

Local variable journal is already defined for EXT4_SB(sb)->s_journal in ext4_freeze, so just use it when calling jbd2_journal_unlock_updates.

---
 fs/ext4/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/super.c +1 -1
index c977f4e..e151d35 100644
@@ -4700,7 +4700,7 @@ static int ext4_freeze(struct super_block *sb)
 	error = ext4_commit_super(sb, 1);
 out:
 	/* we rely on upper layer to stop further updates */
-	jbd2_journal_unlock_updates(EXT4_SB(sb)->s_journal);
+	jbd2_journal_unlock_updates(journal);
 	return error;
 }
 
Signature · 1 line
1.8.4.3