summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_bio.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-11-09 07:00:14 +0000
committerpeter <peter@FreeBSD.org>1998-11-09 07:00:14 +0000
commit4dde2ece8bb12ce17298ca76561d1315d9b4ed7d (patch)
tree93bad2e946f082adc0803d374c0dc6c230f37276 /sys/nfsclient/nfs_bio.c
parent7273a662859cddea81648e430c4fa8a2dfc96411 (diff)
downloadFreeBSD-src-4dde2ece8bb12ce17298ca76561d1315d9b4ed7d.zip
FreeBSD-src-4dde2ece8bb12ce17298ca76561d1315d9b4ed7d.tar.gz
Remove [apparently] bogus casts to u_long for the vnode_pager_setsize()
second argument. np_size is a 64 bit int, so is the second arg. This might have caused needless 2G/4G file size problems. I believe it was Bruce who queried this.
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r--sys/nfsclient/nfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c
index b8b97a4..f68a82b 100644
--- a/sys/nfsclient/nfs_bio.c
+++ b/sys/nfsclient/nfs_bio.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95
- * $Id: nfs_bio.c,v 1.61 1998/09/29 21:46:54 mckusick Exp $
+ * $Id: nfs_bio.c,v 1.62 1998/09/29 22:01:10 mckusick Exp $
*/
@@ -756,7 +756,7 @@ again:
if (uio->uio_offset + n > np->n_size) {
np->n_size = uio->uio_offset + n;
np->n_flag |= NMODIFIED;
- vnode_pager_setsize(vp, (u_long)np->n_size);
+ vnode_pager_setsize(vp, np->n_size);
}
bufsize = biosize;
if ((lbn + 1) * biosize > np->n_size) {
OpenPOWER on IntegriCloud