patch-2.4.25 linux-2.4.25/fs/nfs/direct.c

Next file: linux-2.4.25/fs/nfsd/nfsxdr.c
Previous file: linux-2.4.25/fs/ncpfs/dir.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/fs/nfs/direct.c linux-2.4.25/fs/nfs/direct.c
@@ -354,7 +354,7 @@
 	size_t count = iobuf->length;
 	struct dentry *dentry = file->f_dentry;
 	struct inode *inode = dentry->d_inode;
-	loff_t offset = blocknr << inode->i_blkbits;
+	loff_t offset = (loff_t) blocknr << inode->i_blkbits;
 
 	switch (rw) {
 	case READ:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)