diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-04-30 16:54:48 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-04-30 16:54:48 +0000 |
commit | 0c027c0540e465b7079531efbe825153f9234451 (patch) | |
tree | 201ba2e94a60c3e18092cfd9ebf9df2900d0c162 /sys/nfs | |
parent | 99e407e597e904d4117fad5b351c31f4a0be1f87 (diff) |
Do not cast off_t to u_long in uvm_vnp_setsize call (only misbehaves on 32-bit
platforms.)
ok mpi@
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index b9e1c6f87d0..0048f7d17df 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_bio.c,v 1.84 2019/07/25 01:43:21 cheloha Exp $ */ +/* $OpenBSD: nfs_bio.c,v 1.85 2024/04/30 16:54:47 miod Exp $ */ /* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */ /* @@ -331,7 +331,7 @@ again: np->n_flag |= NMODIFIED; if (uio->uio_offset + n > np->n_size) { np->n_size = uio->uio_offset + n; - uvm_vnp_setsize(vp, (u_long)np->n_size); + uvm_vnp_setsize(vp, np->n_size); extended = 1; } else if (uio->uio_offset + n < np->n_size) truncated = 1; |