Correct previous.

This commit is contained in:
ad 2008-01-17 10:28:24 +00:00
parent 1e584185b2
commit 6d827ae10e
1 changed files with 3 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: smbfs_node.c,v 1.36 2008/01/17 10:25:01 ad Exp $ */
/* $NetBSD: smbfs_node.c,v 1.37 2008/01/17 10:28:24 ad Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.36 2008/01/17 10:25:01 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.37 2008/01/17 10:28:24 ad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -237,7 +237,7 @@ smbfs_reclaim(v)
struct smbnode *np = VTOSMB(vp);
struct smbmount *smp = VTOSMBFS(vp);
if (prtactive && vp->v_usecount > 0)
if (prtactive && vp->v_usecount > 1)
vprint("smbfs_reclaim(): pushing active", vp);
SMBVDEBUG("%.*s,%d\n", (int) np->n_nmlen, np->n_name, vp->v_usecount);
@ -286,9 +286,6 @@ smbfs_inactive(v)
struct smbnode *np = VTOSMB(vp);
struct smb_cred scred;
if (prtactive && vp->v_usecount != 0)
vprint("smbfs_inactive(): pushing active", vp);
SMBVDEBUG("%.*s: %d\n", (int) np->n_nmlen, np->n_name, vp->v_usecount);
if ((np->n_flag & NOPEN) != 0) {
struct smb_share *ssp = np->n_mount->sm_share;