diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2013-07-12 06:34:42 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2013-07-12 06:34:42 -0400 |
| commit | f2006e27396f55276f24434f56e208d86e7f9908 (patch) | |
| tree | 71896db916d33888b4286f80117d3cac0da40e6d /fs/fat/inode.c | |
| parent | e399eb56a6110e13f97e644658648602e2b08de7 (diff) | |
| parent | 9903883f1dd6e86f286b7bfa6e4b423f98c1cd9e (diff) | |
Merge branch 'linus' into timers/urgent
Get upstream changes so we can apply fixes against them
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/fat/inode.c')
| -rw-r--r-- | fs/fat/inode.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 5d4513cb1b3c..11b51bb55b42 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
| @@ -1415,6 +1415,18 @@ int fat_fill_super(struct super_block *sb, void *data, int silent, int isvfat, | |||
| 1415 | brelse(fsinfo_bh); | 1415 | brelse(fsinfo_bh); |
| 1416 | } | 1416 | } |
| 1417 | 1417 | ||
| 1418 | /* interpret volume ID as a little endian 32 bit integer */ | ||
| 1419 | if (sbi->fat_bits == 32) | ||
| 1420 | sbi->vol_id = (((u32)b->fat32.vol_id[0]) | | ||
| 1421 | ((u32)b->fat32.vol_id[1] << 8) | | ||
| 1422 | ((u32)b->fat32.vol_id[2] << 16) | | ||
| 1423 | ((u32)b->fat32.vol_id[3] << 24)); | ||
| 1424 | else /* fat 16 or 12 */ | ||
| 1425 | sbi->vol_id = (((u32)b->fat16.vol_id[0]) | | ||
| 1426 | ((u32)b->fat16.vol_id[1] << 8) | | ||
| 1427 | ((u32)b->fat16.vol_id[2] << 16) | | ||
| 1428 | ((u32)b->fat16.vol_id[3] << 24)); | ||
| 1429 | |||
| 1418 | sbi->dir_per_block = sb->s_blocksize / sizeof(struct msdos_dir_entry); | 1430 | sbi->dir_per_block = sb->s_blocksize / sizeof(struct msdos_dir_entry); |
| 1419 | sbi->dir_per_block_bits = ffs(sbi->dir_per_block) - 1; | 1431 | sbi->dir_per_block_bits = ffs(sbi->dir_per_block) - 1; |
| 1420 | 1432 | ||
