patch-1.3.54 linux/fs/ext2/inode.c

Next file: linux/fs/hpfs/hpfs_fs.c
Previous file: linux/fs/ext2/ialloc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.53/linux/fs/ext2/inode.c linux/fs/ext2/inode.c
@@ -533,7 +533,7 @@
 	inode->i_ctime = raw_inode->i_ctime;
 	inode->i_mtime = raw_inode->i_mtime;
 	inode->u.ext2_i.i_dtime = raw_inode->i_dtime;
-	inode->i_blksize = inode->i_sb->s_blocksize;
+	inode->i_blksize = PAGE_SIZE;	/* This is the optimal IO size (for stat), not the fs block size */
 	inode->i_blocks = raw_inode->i_blocks;
 	inode->i_version = ++event;
 	inode->u.ext2_i.i_flags = raw_inode->i_flags;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this