Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/miscfs/procfs/procfs_vnops.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/miscfs/procfs/procfs_vnops.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.163 retrieving revision 1.164 diff -u -p -r1.163 -r1.164 --- src/sys/miscfs/procfs/procfs_vnops.c 2007/11/26 19:02:16 1.163 +++ src/sys/miscfs/procfs/procfs_vnops.c 2008/01/02 11:49:01 1.164 @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_vnops.c,v 1.163 2007/11/26 19:02:16 pooka Exp $ */ +/* $NetBSD: procfs_vnops.c,v 1.164 2008/01/02 11:49:01 ad Exp $ */ /*- * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc. @@ -112,7 +112,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.163 2007/11/26 19:02:16 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.164 2008/01/02 11:49:01 ad Exp $"); #include #include @@ -424,17 +424,13 @@ procfs_inactive(v) } */ *ap = v; struct vnode *vp = ap->a_vp; struct pfsnode *pfs = VTOPFS(vp); - bool recycle; mutex_enter(&proclist_lock); - recycle = (p_find(pfs->pfs_pid, PFIND_LOCKED) == NULL); + *ap->a_recycle = (p_find(pfs->pfs_pid, PFIND_LOCKED) == NULL); mutex_exit(&proclist_lock); VOP_UNLOCK(vp, 0); - if (recycle) - vgone(vp); - return (0); }