aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fat
diff options
context:
space:
mode:
authorOleksij Rempel <bug-track@fisher-privat.net>2013-02-27 20:03:07 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-27 22:10:10 -0500
commit6b46419b0462ae565880f02e9cd0baf9b25ea71f (patch)
treeb61bdf965ec8457a35a6174cbeff09897debdc90 /fs/fat
parent899bed05e9f6bbb21776f9ebd88f5631987f987a (diff)
fat: add extended fileds to struct fat_boot_sector
Later we will need "state" field to check if volume was cleanly unmounted. Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fat')
-rw-r--r--fs/fat/inode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index f8f491677a4a..4b4d4ef910f3 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -1298,17 +1298,17 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat,
1298 sbi->prev_free = FAT_START_ENT; 1298 sbi->prev_free = FAT_START_ENT;
1299 sb->s_maxbytes = 0xffffffff; 1299 sb->s_maxbytes = 0xffffffff;
1300 1300
1301 if (!sbi->fat_length && b->fat32_length) { 1301 if (!sbi->fat_length && b->fat32.length) {
1302 struct fat_boot_fsinfo *fsinfo; 1302 struct fat_boot_fsinfo *fsinfo;
1303 struct buffer_head *fsinfo_bh; 1303 struct buffer_head *fsinfo_bh;
1304 1304
1305 /* Must be FAT32 */ 1305 /* Must be FAT32 */
1306 sbi->fat_bits = 32; 1306 sbi->fat_bits = 32;
1307 sbi->fat_length = le32_to_cpu(b->fat32_length); 1307 sbi->fat_length = le32_to_cpu(b->fat32.length);
1308 sbi->root_cluster = le32_to_cpu(b->root_cluster); 1308 sbi->root_cluster = le32_to_cpu(b->fat32.root_cluster);
1309 1309
1310 /* MC - if info_sector is 0, don't multiply by 0 */ 1310 /* MC - if info_sector is 0, don't multiply by 0 */
1311 sbi->fsinfo_sector = le16_to_cpu(b->info_sector); 1311 sbi->fsinfo_sector = le16_to_cpu(b->fat32.info_sector);
1312 if (sbi->fsinfo_sector == 0) 1312 if (sbi->fsinfo_sector == 0)
1313 sbi->fsinfo_sector = 1; 1313 sbi->fsinfo_sector = 1;
1314 1314