From 49cc016a398c6ec7a8aab2c6a693911e99674d4e Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Thu, 30 Jul 1998 03:22:52 +0000 Subject: [PATCH] add anti-panic workaround from chris radek (cradek@in221.inetnebr.com) Not sure why this is needed but but does stop crashes. --- sys/gnu/ext2fs/ext2_vfsops.c | 2 ++ sys/gnu/fs/ext2fs/ext2_vfsops.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c index 3dcabcb7052e..c3aab81663dd 100644 --- a/sys/gnu/ext2fs/ext2_vfsops.c +++ b/sys/gnu/ext2fs/ext2_vfsops.c @@ -854,6 +854,8 @@ loop: goto loop; if (VOP_ISLOCKED(vp)) continue; + if (vp->v_type == VNON) /* XXX why is this needed? (it is) */ + continue; ip = VTOI(vp); if ((ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_MODIFIED | IN_UPDATE)) == 0 && diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c index 3dcabcb7052e..c3aab81663dd 100644 --- a/sys/gnu/fs/ext2fs/ext2_vfsops.c +++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c @@ -854,6 +854,8 @@ loop: goto loop; if (VOP_ISLOCKED(vp)) continue; + if (vp->v_type == VNON) /* XXX why is this needed? (it is) */ + continue; ip = VTOI(vp); if ((ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_MODIFIED | IN_UPDATE)) == 0 &&