linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext4: use local variable journal when calling jbd2_journal_unlock_updates in ext4_freeze
@ 2014-01-20  4:25 Joseph Qi
  0 siblings, 0 replies; only message in thread
From: Joseph Qi @ 2014-01-20  4:25 UTC (permalink / raw)
  To: linux-ext4

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.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
---
 fs/ext4/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index c977f4e..e151d35 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -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;
 }

-- 
1.8.4.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-20  4:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-20  4:25 [PATCH] ext4: use local variable journal when calling jbd2_journal_unlock_updates in ext4_freeze Joseph Qi

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).