Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/miscfs/specfs Pullup 1.51 [jmc]:



details:   https://anonhg.NetBSD.org/src/rev/b272b2bcee08
branches:  netbsd-1-5
changeset: 489997:b272b2bcee08
user:      tv <tv%NetBSD.org@localhost>
date:      Mon Oct 30 22:01:12 2000 +0000

description:
Pullup 1.51 [jmc]:
Remove usecount check in spec_open. It fails to catch VALIAS situations
and vfs_mountedon will handle them all correctly.

diffstat:

 sys/miscfs/specfs/spec_vnops.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 34d8529db6e6 -r b272b2bcee08 sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c    Mon Oct 30 21:58:50 2000 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c    Mon Oct 30 22:01:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spec_vnops.c,v 1.48.4.1 2000/07/30 20:38:57 jdolecek Exp $     */
+/*     $NetBSD: spec_vnops.c,v 1.48.4.2 2000/10/30 22:01:12 tv Exp $   */
 
 /*
  * Copyright (c) 1989, 1993
@@ -188,7 +188,6 @@
                        if (securelevel >= 1) {
                                if ((bdev = chrtoblk(dev)) != (dev_t)NODEV &&
                                    vfinddev(bdev, VBLK, &bvp) &&
-                                   bvp->v_usecount > 0 &&
                                    (error = vfs_mountedon(bvp)))
                                        return (error);
                                if (iskmemdev(dev))



Home | Main Index | Thread Index | Old Index