patch-2.4.27 linux-2.4.27/fs/ext2/super.c
Next file: linux-2.4.27/fs/ext3/inode.c
Previous file: linux-2.4.27/fs/ext2/inode.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2004-08-07 16:26:05.972400934 -0700
- Orig file:
linux-2.4.26/fs/ext2/super.c
- Orig date:
2004-02-18 05:36:31.000000000 -0800
diff -urN linux-2.4.26/fs/ext2/super.c linux-2.4.27/fs/ext2/super.c
@@ -427,7 +427,7 @@
unsigned short resuid = EXT2_DEF_RESUID;
unsigned short resgid = EXT2_DEF_RESGID;
unsigned long block;
- unsigned long logic_sb_block = 1;
+ unsigned long logic_sb_block;
unsigned long offset = 0;
kdev_t dev = sb->s_dev;
int blocksize = BLOCK_SIZE;
@@ -465,6 +465,8 @@
if (blocksize != BLOCK_SIZE) {
logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize;
offset = (sb_block*BLOCK_SIZE) % blocksize;
+ } else {
+ logic_sb_block = sb_block;
}
if (!(bh = sb_bread(sb, logic_sb_block))) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)