public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Fred Chou <fred.chou.nd@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fs: fat: use MSDOS_SB macro to get msdos_sb_info
Date: Fri, 26 Dec 2014 16:39:24 +0900	[thread overview]
Message-ID: <874msiuafn.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <1419576561-3516-1-git-send-email-fred.chou.nd@gmail.com> (Fred Chou's message of "Fri, 26 Dec 2014 14:49:21 +0800")

Fred Chou <fred.chou.nd@gmail.com> writes:

> From: Fred Chou <fred.chou.nd@gmail.com>
>
> Use the MSDOS_SB macro to get msdos_sb_info, instead of coding it
> directly.

Looks good. Thanks.

Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

> Signed-off-by: Fred Chou <fred.chou.nd@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 1956dae..0f52d5f 100644
> --- a/fs/fat/inode.c
> +++ b/fs/fat/inode.c
> @@ -640,7 +640,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)

-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

      reply	other threads:[~2014-12-26  7:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-26  6:49 [PATCH] fs: fat: use MSDOS_SB macro to get msdos_sb_info Fred Chou
2014-12-26  7:39 ` OGAWA Hirofumi [this message]

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=874msiuafn.fsf@devron.myhome.or.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=akpm@linux-foundation.org \
    --cc=fred.chou.nd@gmail.com \
    --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