summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-01-20 03:23:42 +0000
committerguenther <guenther@openbsd.org>2014-01-20 03:23:42 +0000
commit4ab8ed70b64e5f2a198bef629e07dfca26a1d380 (patch)
tree09a03a95df4f2d066b46619e70007d8a69ab7cc5 /sys/miscfs
parentdocument !received-on, ok dlg benno (diff)
downloadwireguard-openbsd-4ab8ed70b64e5f2a198bef629e07dfca26a1d380.tar.xz
wireguard-openbsd-4ab8ed70b64e5f2a198bef629e07dfca26a1d380.zip
Move p_textvp from struct proc to struct process so that the exit code
can be further simplified. ok kettenis@
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index eb20e525507..7b60dcbf196 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_vnops.c,v 1.56 2013/03/28 02:08:39 guenther Exp $ */
+/* $OpenBSD: procfs_vnops.c,v 1.57 2014/01/20 03:23:42 guenther Exp $ */
/* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */
/*
@@ -730,7 +730,7 @@ procfs_lookup(void *v)
found:
if (pt->pt_pfstype == Pfile) {
- fvp = p->p_textvp;
+ fvp = p->p_p->ps_textvp;
/* We already checked that it exists. */
vref(fvp);
vn_lock(fvp, LK_EXCLUSIVE | LK_RETRY, curp);
@@ -761,7 +761,7 @@ int
procfs_validfile(struct proc *p, struct mount *mp)
{
- return (p->p_textvp != NULLVP);
+ return (p->p_p->ps_textvp != NULLVP);
}
int