patch-1.3.91 linux/fs/nfs/inode.c

Next file: linux/fs/proc/array.c
Previous file: linux/fs/nfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.90/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -62,6 +62,12 @@
  */
 static void nfs_read_inode(struct inode * inode)
 {
+	int rsize = inode->i_sb->u.nfs_sb.s_server.rsize;
+	int size = inode->i_sb->u.nfs_sb.s_server.wsize;
+
+	if (rsize > size)
+		size = rsize;
+	inode->i_blksize = size;
 	inode->i_mode = 0;
 	inode->i_op = NULL;
 	NFS_CACHEINV(inode);

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