Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/smbfs g/c smbfs_hashprint()



details:   https://anonhg.NetBSD.org/src/rev/5f1f40ff2446
branches:  trunk
changeset: 543421:5f1f40ff2446
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Feb 24 21:27:55 2003 +0000

description:
g/c smbfs_hashprint()

diffstat:

 sys/fs/smbfs/smbfs_node.c |  30 +-----------------------------
 1 files changed, 1 insertions(+), 29 deletions(-)

diffs (51 lines):

diff -r bacc76388b52 -r 5f1f40ff2446 sys/fs/smbfs/smbfs_node.c
--- a/sys/fs/smbfs/smbfs_node.c Mon Feb 24 21:13:13 2003 +0000
+++ b/sys/fs/smbfs/smbfs_node.c Mon Feb 24 21:27:55 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_node.c,v 1.10 2003/02/24 18:41:04 jdolecek Exp $ */
+/*     $NetBSD: smbfs_node.c,v 1.11 2003/02/24 21:27:55 jdolecek Exp $ */
 
 /*
  * Copyright (c) 2000-2001 Boris Popov
@@ -73,16 +73,6 @@
 
 struct pool smbfs_node_pool;
 
-#if 0
-static int smbfs_hashprint(struct mount *mp);
-
-#ifdef SYSCTL_DECL
-SYSCTL_DECL(_vfs_smbfs);
-#endif
-SYSCTL_PROC(_vfs_smbfs, OID_AUTO, vnprint, CTLFLAG_WR|CTLTYPE_OPAQUE,
-           NULL, 0, smbfs_hashprint, "S,vnlist", "vnode hash");
-#endif
-
 #define        FNV_32_PRIME ((u_int32_t) 0x01000193UL)
 #define        FNV1_32_INIT ((u_int32_t) 33554467UL)
 
@@ -98,24 +88,6 @@
        return v;
 }
 
-#if 0
-static int
-smbfs_hashprint(struct mount *mp)
-{
-       struct smbmount *smp = VFSTOSMBFS(mp);
-       struct smbnode_hashhead *nhpp;
-       struct smbnode *np;
-       int i;
-
-       for(i = 0; i <= smp->sm_hashlen; i++) {
-               nhpp = &smp->sm_hash[i];
-               LIST_FOREACH(np, nhpp, n_hash)
-                       vprint(NULL, SMBTOV(np));
-       }
-       return 0;
-}
-#endif
-
 static inline char *
 smbfs_name_alloc(const u_char *name, int nmlen)
 {



Home | Main Index | Thread Index | Old Index