lkml.org 
[lkml]   [2014]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] fs: fat: use MSDOS_SB macro to get msdos_sb_info
Date
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>


\
 
 \ /
  Last update: 2014-12-26 09:21    [W:0.047 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site