vfs_mount.c (debc480e037b7337cc27dd1200d64ac55eea0644) vfs_mount.c (411455a8fbcfbb51e60fb5f5d4a02d6e76c0a88c)
1/*-
2 * Copyright (c) 1999-2004 Poul-Henning Kamp
3 * Copyright (c) 1999 Michael Smith
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 496 unchanged lines hidden (view full) ---

505 panic("vfs_mount_destroy: nonzero writeopcount");
506 if (mp->mnt_secondary_writes != 0)
507 panic("vfs_mount_destroy: nonzero secondary_writes");
508 atomic_subtract_rel_int(&mp->mnt_vfc->vfc_refcount, 1);
509 if (!TAILQ_EMPTY(&mp->mnt_nvnodelist)) {
510 struct vnode *vp;
511
512 TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes)
1/*-
2 * Copyright (c) 1999-2004 Poul-Henning Kamp
3 * Copyright (c) 1999 Michael Smith
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 496 unchanged lines hidden (view full) ---

505 panic("vfs_mount_destroy: nonzero writeopcount");
506 if (mp->mnt_secondary_writes != 0)
507 panic("vfs_mount_destroy: nonzero secondary_writes");
508 atomic_subtract_rel_int(&mp->mnt_vfc->vfc_refcount, 1);
509 if (!TAILQ_EMPTY(&mp->mnt_nvnodelist)) {
510 struct vnode *vp;
511
512 TAILQ_FOREACH(vp, &mp->mnt_nvnodelist, v_nmntvnodes)
513 vprint("", vp);
513 vn_printf(vp, "dangling vnode ");
514 panic("unmount: dangling vnode");
515 }
516 KASSERT(TAILQ_EMPTY(&mp->mnt_uppers), ("mnt_uppers"));
517 if (mp->mnt_nvnodelistsize != 0)
518 panic("vfs_mount_destroy: nonzero nvnodelistsize");
519 if (mp->mnt_activevnodelistsize != 0)
520 panic("vfs_mount_destroy: nonzero activevnodelistsize");
521 if (mp->mnt_lockref != 0)

--- 1471 unchanged lines hidden ---
514 panic("unmount: dangling vnode");
515 }
516 KASSERT(TAILQ_EMPTY(&mp->mnt_uppers), ("mnt_uppers"));
517 if (mp->mnt_nvnodelistsize != 0)
518 panic("vfs_mount_destroy: nonzero nvnodelistsize");
519 if (mp->mnt_activevnodelistsize != 0)
520 panic("vfs_mount_destroy: nonzero activevnodelistsize");
521 if (mp->mnt_lockref != 0)

--- 1471 unchanged lines hidden ---