Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/smbfs Set recycle to false along with a comment screa...



details:   https://anonhg.NetBSD.org/src/rev/a7a695d33dea
branches:  trunk
changeset: 748295:a7a695d33dea
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Oct 19 19:12:06 2009 +0000

description:
Set recycle to false along with a comment screaming that it should
be set properly to recycle unused vnodes immediately.

diffstat:

 sys/fs/smbfs/smbfs_node.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r fdc60cacd581 -r a7a695d33dea sys/fs/smbfs/smbfs_node.c
--- a/sys/fs/smbfs/smbfs_node.c Mon Oct 19 19:07:39 2009 +0000
+++ b/sys/fs/smbfs/smbfs_node.c Mon Oct 19 19:12:06 2009 +0000
@@ -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);
 }
 /*



Home | Main Index | Thread Index | Old Index