From: Alexander Kuleshov <kuleshovmail@gmail.com>
To: hirofumi@mail.parknet.co.jp
Cc: linux-kernel@vger.kernel.org,
Alexander Kuleshov <kuleshovmail@gmail.com>
Subject: [PATCH 2/3] fs/fat: use MSDOS_SB to get msdos superblock
Date: Wed, 18 Feb 2015 01:22:37 +0600 [thread overview]
Message-ID: <1424200957-19914-1-git-send-email-kuleshovmail@gmail.com> (raw)
In-Reply-To: <1424200897-19171-1-git-send-email-kuleshovmail@gmail.com>
Use the MSDOS_SB helper to get msdos superblock instead of coding it directly.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
fs/fat/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index e140e62..98fb64b 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -580,7 +580,7 @@ static void fat_set_state(struct super_block *sb,
{
struct buffer_head *bh;
struct fat_boot_sector *b;
- struct msdos_sb_info *sbi = sb->s_fs_info;
+ struct msdos_sb_info *sbi = MSDOS_SB(sb);
/* do not change any thing if mounted read only */
if ((sb->s_flags & MS_RDONLY) && !force)
--
2.3.0.401.g57a267c.dirty
next prev parent reply other threads:[~2015-02-17 19:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-17 19:21 [PATCH 0/3] fs/fat: minor cleanup Alexander Kuleshov
2015-02-17 19:22 ` [PATCH 1/3] fs/fat: remove unnecessary defintion Alexander Kuleshov
2015-02-17 19:22 ` Alexander Kuleshov [this message]
2015-02-17 19:22 ` [PATCH 3/3] fs/fat: remove unnecessary includes Alexander Kuleshov
2015-02-17 19:45 ` [PATCH 0/3] fs/fat: minor cleanup OGAWA Hirofumi
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=1424200957-19914-1-git-send-email-kuleshovmail@gmail.com \
--to=kuleshovmail@gmail.com \
--cc=hirofumi@mail.parknet.co.jp \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®