Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/smbfs Wrap the smbfs_pbuf_freecnt var in #ifndef NetB...



details:   https://anonhg.NetBSD.org/src/rev/fd99142f022e
branches:  trunk
changeset: 542572:fd99142f022e
user:      erh <erh%NetBSD.org@localhost>
date:      Sat Feb 01 21:02:03 2003 +0000

description:
Wrap the smbfs_pbuf_freecnt var in #ifndef NetBSD since it's entirely unused.

diffstat:

 sys/fs/smbfs/smbfs_vfsops.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 7556b69d12e8 -r fd99142f022e sys/fs/smbfs/smbfs_vfsops.c
--- a/sys/fs/smbfs/smbfs_vfsops.c       Sat Feb 01 20:52:58 2003 +0000
+++ b/sys/fs/smbfs/smbfs_vfsops.c       Sat Feb 01 21:02:03 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_vfsops.c,v 1.5 2003/02/01 06:23:42 thorpej Exp $ */
+/*     $NetBSD: smbfs_vfsops.c,v 1.6 2003/02/01 21:02:03 erh Exp $     */
 
 /*
  * Copyright (c) 2000-2001, Boris Popov
@@ -93,7 +93,9 @@
 int smbfs_fhtovp(struct mount *, struct fid *, struct vnode **);
 int smbfs_vptofh(struct vnode *, struct fid *);
 
+#ifndef __NetBSD__
 int smbfs_pbuf_freecnt = -1;   /* start out unlimited */
+#endif
 
 extern struct vnodeopv_desc smbfs_vnodeop_opv_desc;
 
@@ -359,7 +361,9 @@
 #ifdef SMBFS_USEZONE
        smbfsmount_zone = zinit("SMBFSMOUNT", sizeof(struct smbmount), 0, 0, 1);
 #endif
+#ifndef __NetBSD__
        smbfs_pbuf_freecnt = nswbuf / 2 + 1;
+#endif
        SMBVDEBUG("done.\n");
 }
 



Home | Main Index | Thread Index | Old Index