summaryrefslogtreecommitdiffstats
path: root/sys/isofs/cd9660/cd9660_lookup.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-03-08 16:09:38 +0000
committerbde <bde@FreeBSD.org>1997-03-08 16:09:38 +0000
commitdfdab64a1832f3d7748c4068960de8eba7a28c04 (patch)
treee0c8dd9d63a0d991f933683a7c1be5b641d94dad /sys/isofs/cd9660/cd9660_lookup.c
parent0309fd38a3de651d5590ba03130e75846cbb9a2d (diff)
downloadFreeBSD-src-dfdab64a1832f3d7748c4068960de8eba7a28c04.zip
FreeBSD-src-dfdab64a1832f3d7748c4068960de8eba7a28c04.tar.gz
Use the common nchstats struct instead of a private one for ncs_2passes
and ncs_pass2. The public one is already used for other cd9660 statistics and the private one was effectively invisible.
Diffstat (limited to 'sys/isofs/cd9660/cd9660_lookup.c')
-rw-r--r--sys/isofs/cd9660/cd9660_lookup.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/isofs/cd9660/cd9660_lookup.c b/sys/isofs/cd9660/cd9660_lookup.c
index 9d8ef1b..b2399e7 100644
--- a/sys/isofs/cd9660/cd9660_lookup.c
+++ b/sys/isofs/cd9660/cd9660_lookup.c
@@ -38,7 +38,7 @@
* from: @(#)ufs_lookup.c 7.33 (Berkeley) 5/19/91
*
* @(#)cd9660_lookup.c 8.2 (Berkeley) 1/23/94
- * $Id$
+ * $Id: cd9660_lookup.c,v 1.14 1997/02/22 09:38:48 peter Exp $
*/
#include <sys/param.h>
@@ -54,8 +54,6 @@
#include <isofs/cd9660/iso_rrip.h>
#include <isofs/cd9660/cd9660_rrip.h>
-struct nchstats iso_nchstats;
-
/*
* Convert a component of a pathname into a pointer to a locked inode.
* This is a very central and rather complicated routine.
@@ -238,7 +236,7 @@ cd9660_lookup(ap)
(error = VOP_BLKATOFF(vdp, (off_t)dp->i_offset, NULL, &bp)))
return (error);
numdirpasses = 2;
- iso_nchstats.ncs_2passes++;
+ nchstats.ncs_2passes++;
}
endsearch = dp->i_size;
@@ -386,7 +384,7 @@ notfound:
found:
if (numdirpasses == 2)
- iso_nchstats.ncs_pass2++;
+ nchstats.ncs_pass2++;
/*
* Found component in pathname.
OpenPOWER on IntegriCloud