diff options
author | peter <peter@FreeBSD.org> | 1998-11-09 07:00:14 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-11-09 07:00:14 +0000 |
commit | 4dde2ece8bb12ce17298ca76561d1315d9b4ed7d (patch) | |
tree | 93bad2e946f082adc0803d374c0dc6c230f37276 /sys | |
parent | 7273a662859cddea81648e430c4fa8a2dfc96411 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/nfs/nfs_bio.c | 4 | ||||
-rw-r--r-- | sys/nfs/nfs_common.c | 6 | ||||
-rw-r--r-- | sys/nfs/nfs_subs.c | 6 | ||||
-rw-r--r-- | sys/nfs/nfs_vnops.c | 8 | ||||
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 4 | ||||
-rw-r--r-- | sys/nfsclient/nfs_subs.c | 6 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 8 | ||||
-rw-r--r-- | sys/nfsserver/nfs_srvsubs.c | 6 |
8 files changed, 24 insertions, 24 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index b8b97a4..f68a82b 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/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) { diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c index 0e964cb..c4131e5 100644 --- a/sys/nfs/nfs_common.c +++ b/sys/nfs/nfs_common.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 - * $Id: nfs_subs.c,v 1.65 1998/09/07 05:42:15 bde Exp $ + * $Id: nfs_subs.c,v 1.66 1998/10/31 15:31:25 peter Exp $ */ /* @@ -1377,7 +1377,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper) np->n_size = vap->va_size; } else np->n_size = vap->va_size; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } else np->n_size = vap->va_size; } @@ -1463,7 +1463,7 @@ nfs_getattrcache(vp, vaper) np->n_size = vap->va_size; } else np->n_size = vap->va_size; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } else np->n_size = vap->va_size; } diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 0e964cb..c4131e5 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 - * $Id: nfs_subs.c,v 1.65 1998/09/07 05:42:15 bde Exp $ + * $Id: nfs_subs.c,v 1.66 1998/10/31 15:31:25 peter Exp $ */ /* @@ -1377,7 +1377,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper) np->n_size = vap->va_size; } else np->n_size = vap->va_size; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } else np->n_size = vap->va_size; } @@ -1463,7 +1463,7 @@ nfs_getattrcache(vp, vaper) np->n_size = vap->va_size; } else np->n_size = vap->va_size; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } else np->n_size = vap->va_size; } diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 67b107e..fac5034 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.109 1998/09/29 23:39:37 mckusick Exp $ + * $Id: nfs_vnops.c,v 1.110 1998/10/31 15:31:26 peter Exp $ */ @@ -622,7 +622,7 @@ nfs_setattr(ap) */ if (vp->v_mount->mnt_flag & MNT_RDONLY) return (EROFS); - vnode_pager_setsize(vp, (u_long)vap->va_size); + vnode_pager_setsize(vp, vap->va_size); if (np->n_flag & NMODIFIED) { if (vap->va_size == 0) error = nfs_vinvalbuf(vp, 0, @@ -631,7 +631,7 @@ nfs_setattr(ap) error = nfs_vinvalbuf(vp, V_SAVE, ap->a_cred, ap->a_p, 1); if (error) { - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); return (error); } } @@ -647,7 +647,7 @@ nfs_setattr(ap) error = nfs_setattrrpc(vp, vap, ap->a_cred, ap->a_p); if (error && vap->va_size != VNOVAL) { np->n_size = np->n_vattr.va_size = tsize; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } return (error); } 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) { diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c index 0e964cb..c4131e5 100644 --- a/sys/nfsclient/nfs_subs.c +++ b/sys/nfsclient/nfs_subs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 - * $Id: nfs_subs.c,v 1.65 1998/09/07 05:42:15 bde Exp $ + * $Id: nfs_subs.c,v 1.66 1998/10/31 15:31:25 peter Exp $ */ /* @@ -1377,7 +1377,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper) np->n_size = vap->va_size; } else np->n_size = vap->va_size; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } else np->n_size = vap->va_size; } @@ -1463,7 +1463,7 @@ nfs_getattrcache(vp, vaper) np->n_size = vap->va_size; } else np->n_size = vap->va_size; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } else np->n_size = vap->va_size; } diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 67b107e..fac5034 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95 - * $Id: nfs_vnops.c,v 1.109 1998/09/29 23:39:37 mckusick Exp $ + * $Id: nfs_vnops.c,v 1.110 1998/10/31 15:31:26 peter Exp $ */ @@ -622,7 +622,7 @@ nfs_setattr(ap) */ if (vp->v_mount->mnt_flag & MNT_RDONLY) return (EROFS); - vnode_pager_setsize(vp, (u_long)vap->va_size); + vnode_pager_setsize(vp, vap->va_size); if (np->n_flag & NMODIFIED) { if (vap->va_size == 0) error = nfs_vinvalbuf(vp, 0, @@ -631,7 +631,7 @@ nfs_setattr(ap) error = nfs_vinvalbuf(vp, V_SAVE, ap->a_cred, ap->a_p, 1); if (error) { - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); return (error); } } @@ -647,7 +647,7 @@ nfs_setattr(ap) error = nfs_setattrrpc(vp, vap, ap->a_cred, ap->a_p); if (error && vap->va_size != VNOVAL) { np->n_size = np->n_vattr.va_size = tsize; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } return (error); } diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c index 0e964cb..c4131e5 100644 --- a/sys/nfsserver/nfs_srvsubs.c +++ b/sys/nfsserver/nfs_srvsubs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 - * $Id: nfs_subs.c,v 1.65 1998/09/07 05:42:15 bde Exp $ + * $Id: nfs_subs.c,v 1.66 1998/10/31 15:31:25 peter Exp $ */ /* @@ -1377,7 +1377,7 @@ nfs_loadattrcache(vpp, mdp, dposp, vaper) np->n_size = vap->va_size; } else np->n_size = vap->va_size; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } else np->n_size = vap->va_size; } @@ -1463,7 +1463,7 @@ nfs_getattrcache(vp, vaper) np->n_size = vap->va_size; } else np->n_size = vap->va_size; - vnode_pager_setsize(vp, (u_long)np->n_size); + vnode_pager_setsize(vp, np->n_size); } else np->n_size = vap->va_size; } |