summaryrefslogtreecommitdiffstats
path: root/fs/fat
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-03-25 23:40:36 +0000
committer <ralf@linux-mips.org>1997-03-25 23:40:36 +0000
commit7206675c40394c78a90e74812bbdbf8cf3cca1be (patch)
tree251895cf5a0008e2b4ce438cb01ad4d55fb5b97b /fs/fat
parentbeb116954b9b7f3bb56412b2494b562f02b864b1 (diff)
Import of Linux/MIPS 2.1.14.2
Diffstat (limited to 'fs/fat')
-rw-r--r--fs/fat/.cvsignore1
-rw-r--r--fs/fat/inode.c8
2 files changed, 2 insertions, 7 deletions
diff --git a/fs/fat/.cvsignore b/fs/fat/.cvsignore
new file mode 100644
index 000000000..4671378ae
--- /dev/null
+++ b/fs/fat/.cvsignore
@@ -0,0 +1 @@
+.depend
diff --git a/fs/fat/inode.c b/fs/fat/inode.c
index 55d91ba2b..311907407 100644
--- a/fs/fat/inode.c
+++ b/fs/fat/inode.c
@@ -3,8 +3,6 @@
*
* Written 1992,1993 by Werner Almesberger
* VFAT extensions by Gordon Chaffee, merged with msdos fs by Henrik Storner
- *
- * 3 May 1996 Fixed alignment problems for RISC architectures.
*/
#define __NO_VERSION__
@@ -246,7 +244,6 @@ struct super_block *fat_read_super(struct super_block *sb,void *data, int silent
#define ROUND_TO_MULTIPLE(n,m) ((n) && (m) ? (n)+(m)-1-((n)-1)%(m) : 0)
/* don't divide by zero */
- logical_sector_size = b->sector_size[0] | (b->sector_size[1] << 8);
logical_sector_size =
CF_LE_W(get_unaligned((unsigned short *) &b->sector_size));
sector_mult = logical_sector_size >> SECTOR_BITS;
@@ -261,9 +258,6 @@ struct super_block *fat_read_super(struct super_block *sb,void *data, int silent
MSDOS_SB(sb)->data_start = MSDOS_SB(sb)->dir_start+ROUND_TO_MULTIPLE((
MSDOS_SB(sb)->dir_entries << MSDOS_DIR_BITS) >> SECTOR_BITS,
sector_mult);
- data_sectors = ((b->sectors[0] | (b->sectors[1] << 8)) ?
- (b->sectors[0] | (b->sectors[1] << 8)) :
- CF_LE_L(b->total_sect))*sector_mult-MSDOS_SB(sb)->data_start;
data_sectors = CF_LE_W(get_unaligned((unsigned short *) &b->sectors));
if (!data_sectors) {
data_sectors = CF_LE_L(b->total_sect);
@@ -304,7 +298,7 @@ struct super_block *fat_read_super(struct super_block *sb,void *data, int silent
MSDOS_SB(sb)->fats,MSDOS_SB(sb)->fat_start,MSDOS_SB(sb)->fat_length,
MSDOS_SB(sb)->dir_start,MSDOS_SB(sb)->dir_entries,
MSDOS_SB(sb)->data_start,
- (b->sectors[0] | (b->sectors[1] << 8)),
+ CF_LE_W(*(unsigned short *) &b->sectors),
(unsigned long)b->total_sect,logical_sector_size);
printk ("Transaction block size = %d\n",blksize);
}