Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/umapfs Remove explicit references to null_bypass ...



details:   https://anonhg.NetBSD.org/src/rev/ac3a7c8b5111
branches:  trunk
changeset: 473035:ac3a7c8b5111
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Mon May 17 20:29:05 1999 +0000

description:
Remove explicit references to null_bypass (used in umap_lock() and
umap_unlock()) so as to not explicitly depend on nullfs being compiled
into the kernel.

umap_bypass won't be too slow as there are no credentials in these two ops
to need mapping.

diffstat:

 sys/miscfs/umapfs/umap_vnops.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 11dd89520963 -r ac3a7c8b5111 sys/miscfs/umapfs/umap_vnops.c
--- a/sys/miscfs/umapfs/umap_vnops.c    Mon May 17 20:08:22 1999 +0000
+++ b/sys/miscfs/umapfs/umap_vnops.c    Mon May 17 20:29:05 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umap_vnops.c,v 1.13 1999/03/25 13:05:42 bouyer Exp $   */
+/*     $NetBSD: umap_vnops.c,v 1.14 1999/05/17 20:29:05 wrstuden Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -70,8 +70,6 @@
 int    umap_open       __P((void *));
 int    umap_fsync      __P((void *));
 
-extern int  null_bypass __P((void *));
-
 /*
  * Global vfs data structures
  */
@@ -321,7 +319,7 @@
        if ((ap->a_flags & LK_TYPE_MASK) == LK_DRAIN)
                return (0);
        ap->a_flags &= ~LK_INTERLOCK;
-       return (null_bypass(ap));
+       return (umap_bypass(ap));
 }
 
 /*
@@ -341,7 +339,7 @@
 
        genfs_nounlock(ap);
        ap->a_flags &= ~LK_INTERLOCK;
-       return (null_bypass(ap));
+       return (umap_bypass(ap));
 }
 
 /*



Home | Main Index | Thread Index | Old Index