Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754785AbbBQTWp (ORCPT ); Tue, 17 Feb 2015 14:22:45 -0500 Received: from mail-la0-f42.google.com ([209.85.215.42]:37905 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753381AbbBQTWn (ORCPT ); Tue, 17 Feb 2015 14:22:43 -0500 From: Alexander Kuleshov To: hirofumi@mail.parknet.co.jp Cc: linux-kernel@vger.kernel.org, Alexander Kuleshov Subject: [PATCH 2/3] fs/fat: use MSDOS_SB to get msdos superblock Date: Wed, 18 Feb 2015 01:22:37 +0600 Message-Id: <1424200957-19914-1-git-send-email-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.3.0.401.g57a267c.dirty In-Reply-To: <1424200897-19171-1-git-send-email-kuleshovmail@gmail.com> References: <1424200897-19171-1-git-send-email-kuleshovmail@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 921 Lines: 28 Use the MSDOS_SB helper to get msdos superblock instead of coding it directly. Signed-off-by: Alexander Kuleshov --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/