From: Joseph Qi <joseph.qi@huawei.com>
To: <linux-ext4@vger.kernel.org>
Subject: [PATCH] ext4: use local variable journal when calling jbd2_journal_unlock_updates in ext4_freeze
Date: Mon, 20 Jan 2014 12:25:33 +0800 [thread overview]
Message-ID: <52DCA53D.1030608@huawei.com> (raw)
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
reply other threads:[~2014-01-20 4:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52DCA53D.1030608@huawei.com \
--to=joseph.qi@huawei.com \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).