Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/genfs Fix tyop pointed out by Chuck Silvers <chuq...



details:   https://anonhg.NetBSD.org/src/rev/13d306155f63
branches:  trunk
changeset: 474606:13d306155f63
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Mon Jul 12 16:37:03 1999 +0000

description:
Fix tyop pointed out by Chuck Silvers <chuq%chuq.com@localhost>.

diffstat:

 sys/miscfs/genfs/layer_subr.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (50 lines):

diff -r 72160ea04dba -r 13d306155f63 sys/miscfs/genfs/layer_subr.c
--- a/sys/miscfs/genfs/layer_subr.c     Mon Jul 12 15:54:55 1999 +0000
+++ b/sys/miscfs/genfs/layer_subr.c     Mon Jul 12 16:37:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: layer_subr.c,v 1.1 1999/07/08 01:19:00 wrstuden Exp $  */
+/*     $NetBSD: layer_subr.c,v 1.2 1999/07/12 16:37:03 wrstuden Exp $  */
 
 /*
  * Copyright (c) 1999 National Aeronautics & Space Administration
@@ -128,11 +128,11 @@
         */
        hd = LAYER_NHASH(lmp, lowervp);
 loop:
-       simple_lock(&lmp->layerfs_hashlock);
+       simple_lock(&lmp->layerm_hashlock);
        for (a = hd->lh_first; a != 0; a = a->layer_hash.le_next) {
                if (a->layer_lowervp == lowervp && LAYERTOV(a)->v_mount == mp) {
                        vp = LAYERTOV(a);
-                       simple_unlock(&lmp->layerfs_hashlock);
+                       simple_unlock(&lmp->layerm_hashlock);
                        /*
                         * We must be careful here as the fact the lower
                         * vnode is locked will imply vp is locked unless
@@ -157,7 +157,7 @@
                }
        }
 
-       simple_unlock(&lmp->layerfs_hashlock);
+       simple_unlock(&lmp->layerm_hashlock);
        return NULL;
 }
 
@@ -215,7 +215,7 @@
                return (0);
        }
 
-       simple_lock(&lmp->layerfs_hashlock);
+       simple_lock(&lmp->layerm_hashlock);
 
        /*
         * Now lock the new node. We rely on the fact that we were passed
@@ -260,7 +260,7 @@
        VREF(lowervp);  /* Take into account reference held in layer_node */
        hd = LAYER_NHASH(lmp, lowervp);
        LIST_INSERT_HEAD(hd, xp, layer_hash);
-       simple_unlock(&lmp->layerfs_hashlock);
+       simple_unlock(&lmp->layerm_hashlock);
        return (0);
 }
 



Home | Main Index | Thread Index | Old Index