Skip to contentSkip to conversation

fs: fat: use MSDOS_SB macro to get msdos_sb_info

PATCH In review Fred Chou 2 participants 2 messages Dec 26, 2014 VFAT/FAT/msdos filesystem

lore
Share & tools
lore

Fred Chou

author
#0 lore raw

PATCH 1/1 fs: fat: use MSDOS_SB macro to get msdos_sb_info

From: Fred Chou <[email protected]>

Use the MSDOS_SB macro to get msdos_sb_info, instead of coding it directly.

---
 fs/fat/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fat/inode.c +1 -1
index 1956dae..0f52d5f 100644
@@ -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)
Signature · 1 line
1.9.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Fred Chou

From: Fred Chou <[email protected]>

Use the MSDOS_SB macro to get msdos_sb_info, instead of coding it directly.

Looks good. Thanks.

Quoted 18 lines
---
 fs/fat/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fat/inode.c +1 -1
index 1956dae..0f52d5f 100644
@@ -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)
Signature · 1 line
OGAWA Hirofumi <[email protected]>