lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 26 Dec 2014 16:39:24 +0900
From:	OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To:	Fred Chou <fred.chou.nd@...il.com>,
	Andrew Morton <akpm@...ux-foundation.org>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fs: fat: use MSDOS_SB macro to get msdos_sb_info

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

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

Looks good. Thanks.

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

> Signed-off-by: Fred Chou <fred.chou.nd@...il.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@...l.parknet.co.jp>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists