From de81e10cbb58874cb933261bed6dd5ead4430d37 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Fri, 16 Feb 1990 19:31:49 -0800 Subject: [PATCH] have to check both the device AND the type SCCS-vsn: sys/kern/vfs_subr.c 7.27 --- usr/src/sys/kern/vfs_subr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/src/sys/kern/vfs_subr.c b/usr/src/sys/kern/vfs_subr.c index ce47f3b4fc..d966397a4c 100644 --- a/usr/src/sys/kern/vfs_subr.c +++ b/usr/src/sys/kern/vfs_subr.c @@ -14,7 +14,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#)vfs_subr.c 7.26 (Berkeley) %G% + * @(#)vfs_subr.c 7.27 (Berkeley) %G% */ /* @@ -681,7 +681,8 @@ void vgone(vp) if (vp->v_flag & VALIASED) { count = 0; for (vq = *vp->v_hashchain; vq; vq = vq->v_specnext) { - if (vq->v_rdev != vp->v_rdev) + if (vq->v_rdev != vp->v_rdev || + vq->v_type != vp->v_type) continue; count++; vx = vq; @@ -744,7 +745,7 @@ vcount(vp) return (vp->v_usecount); loop: for (count = 0, vq = *vp->v_hashchain; vq; vq = vq->v_specnext) { - if (vq->v_rdev != vp->v_rdev) + if (vq->v_rdev != vp->v_rdev || vq->v_type != vp->v_type) continue; /* * Alias, but not in use, so flush it out. -- 2.20.1