diff options
author | dg <dg@FreeBSD.org> | 1998-11-14 23:36:17 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1998-11-14 23:36:17 +0000 |
commit | c1601848731885f137ce3e0becc96d865c151d8e (patch) | |
tree | 98de8393c0a4edb000ebc9a2f549012c2b6c25f7 /sys | |
parent | 2f0e3424ed6bcb975173592be454fab41a7d659a (diff) | |
download | FreeBSD-src-c1601848731885f137ce3e0becc96d865c151d8e.zip FreeBSD-src-c1601848731885f137ce3e0becc96d865c151d8e.tar.gz |
Fixed a couple of nits in sendfile(2): clear PG_ZERO before unbusying
the page, and use passed-in "p" rather than curproc in uio struct.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 65ea00d..d29acd6 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 - * $Id: uipc_syscalls.c,v 1.42 1998/11/05 14:28:24 dg Exp $ + * $Id: uipc_syscalls.c,v 1.43 1998/11/06 19:16:30 dg Exp $ */ #include "opt_compat.h" @@ -1555,13 +1555,13 @@ retry_lookup: auio.uio_offset = trunc_page(off); auio.uio_segflg = UIO_NOCOPY; auio.uio_rw = UIO_READ; - auio.uio_procp = curproc; + auio.uio_procp = p; vn_lock(vp, LK_SHARED | LK_NOPAUSE | LK_RETRY, p); error = VOP_READ(vp, &auio, IO_VMIO | ((MAXBSIZE / bsize) << 16), p->p_ucred); VOP_UNLOCK(vp, 0, p); - vm_page_io_finish(pg); vm_page_flag_clear(pg, PG_ZERO); + vm_page_io_finish(pg); if (error) { vm_page_unwire(pg, 0); /* |