From 4ba68533b92f1407b3a95fbe75939156b54989c0 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Sun, 29 Feb 2004 11:08:55 +0000 Subject: [PATCH] use global prtactive setting instead of ntfs-specific variable; this also changes default, to not print the active vnodes --- sys/fs/ntfs/ntfs_vnops.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/fs/ntfs/ntfs_vnops.c b/sys/fs/ntfs/ntfs_vnops.c index 25d23c8b30f2..bd85734761ab 100644 --- a/sys/fs/ntfs/ntfs_vnops.c +++ b/sys/fs/ntfs/ntfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: ntfs_vnops.c,v 1.17 2004/02/22 10:26:14 jdolecek Exp $ */ +/* $NetBSD: ntfs_vnops.c,v 1.18 2004/02/29 11:08:55 jdolecek Exp $ */ /* * Copyright (c) 1992, 1993 @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ntfs_vnops.c,v 1.17 2004/02/22 10:26:14 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ntfs_vnops.c,v 1.18 2004/02/29 11:08:55 jdolecek Exp $"); #include #include @@ -91,7 +91,7 @@ static int ntfs_fsync __P((struct vop_fsync_args *ap)); #endif static int ntfs_pathconf __P((void *)); -int ntfs_prtactive = 1; /* 1 => print out reclaim of active vnodes */ +extern int prtactive; #if defined(__FreeBSD__) int @@ -251,7 +251,7 @@ ntfs_inactive(ap) dprintf(("ntfs_inactive: vnode: %p, ntnode: %d\n", vp, ip->i_number)); - if (ntfs_prtactive && vp->v_usecount != 0) + if (prtactive && vp->v_usecount != 0) vprint("ntfs_inactive: pushing active", vp); VOP_UNLOCK(vp, 0); @@ -278,7 +278,7 @@ ntfs_reclaim(ap) dprintf(("ntfs_reclaim: vnode: %p, ntnode: %d\n", vp, ip->i_number)); - if (ntfs_prtactive && vp->v_usecount != 0) + if (prtactive && vp->v_usecount != 0) vprint("ntfs_reclaim: pushing active", vp); if ((error = ntfs_ntget(ip)) != 0)