Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/nullfs Call hashdone where appropriate.



details:   https://anonhg.NetBSD.org/src/rev/baea2666686e
branches:  trunk
changeset: 517112:baea2666686e
user:      enami <enami%NetBSD.org@localhost>
date:      Wed Nov 07 04:21:26 2001 +0000

description:
Call hashdone where appropriate.

diffstat:

 sys/miscfs/nullfs/null_vfsops.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 8a839b99320b -r baea2666686e sys/miscfs/nullfs/null_vfsops.c
--- a/sys/miscfs/nullfs/null_vfsops.c   Wed Nov 07 04:15:41 2001 +0000
+++ b/sys/miscfs/nullfs/null_vfsops.c   Wed Nov 07 04:21:26 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: null_vfsops.c,v 1.33 2001/11/07 04:15:41 enami Exp $   */
+/*     $NetBSD: null_vfsops.c,v 1.34 2001/11/07 04:21:26 enami Exp $   */
 
 /*
  * Copyright (c) 1999 National Aeronautics & Space Administration
@@ -185,6 +185,7 @@
         */
        if (error) {
                vput(lowerrootvp);
+               hashdone(nmp->nullm_node_hashtbl, M_CACHE);
                free(nmp, M_UFSMNT);    /* XXX */
                return (error);
        }
@@ -221,7 +222,8 @@
        int mntflags;
        struct proc *p;
 {
-       struct vnode *null_rootvp = MOUNTTONULLMOUNT(mp)->nullm_rootvp;
+       struct null_mount *nmp = MOUNTTONULLMOUNT(mp);
+       struct vnode *null_rootvp = nmp->nullm_rootvp;
        int error;
        int flags = 0;
 
@@ -263,6 +265,7 @@
        /*
         * Finally, throw away the null_mount structure
         */
+       hashdone(nmp->nullm_node_hashtbl, M_CACHE);
        free(mp->mnt_data, M_UFSMNT);   /* XXX */
        mp->mnt_data = NULL;
        return (0);



Home | Main Index | Thread Index | Old Index