Module Name: src Committed By: pooka Date: Mon Oct 19 19:12:06 UTC 2009
Modified Files: src/sys/fs/smbfs: smbfs_node.c Log Message: Set recycle to false along with a comment screaming that it should be set properly to recycle unused vnodes immediately. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/fs/smbfs/smbfs_node.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/smbfs/smbfs_node.c diff -u src/sys/fs/smbfs/smbfs_node.c:1.41 src/sys/fs/smbfs/smbfs_node.c:1.42 --- src/sys/fs/smbfs/smbfs_node.c:1.41 Thu Jul 2 16:17:52 2009 +++ src/sys/fs/smbfs/smbfs_node.c Mon Oct 19 19:12:06 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: smbfs_node.c,v 1.41 2009/07/02 16:17:52 njoly Exp $ */ +/* $NetBSD: smbfs_node.c,v 1.42 2009/10/19 19:12:06 pooka Exp $ */ /* * Copyright (c) 2000-2001 Boris Popov @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.41 2009/07/02 16:17:52 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.42 2009/10/19 19:12:06 pooka Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -278,6 +278,7 @@ { struct vop_inactive_args /* { struct vnode *a_vp; + bool *a_recycle; } */ *ap = v; struct lwp *l = curlwp; kauth_cred_t cred = l->l_cred; @@ -305,6 +306,9 @@ smbfs_attr_cacheremove(vp); } VOP_UNLOCK(vp, 0); + + *ap->a_recycle = false; /* XXX: should set the value properly */ + return (0); } /*