Remove diagnostic ufs_vinit check, this isn't quite the right place for it;

it'll be reinstated elsewhere.
This commit is contained in:
fvdl 2003-04-11 14:13:28 +00:00
parent 7a2abff303
commit 4cdcaab92d
1 changed files with 3 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ufs_vnops.c,v 1.95 2003/04/11 10:36:33 fvdl Exp $ */ /* $NetBSD: ufs_vnops.c,v 1.96 2003/04/11 14:13:28 fvdl Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1989, 1993, 1995 * Copyright (c) 1982, 1986, 1989, 1993, 1995
@ -41,7 +41,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.95 2003/04/11 10:36:33 fvdl Exp $"); __KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.96 2003/04/11 14:13:28 fvdl Exp $");
#ifndef _LKM #ifndef _LKM
#include "opt_quota.h" #include "opt_quota.h"
@ -2033,20 +2033,13 @@ ufs_vinit(struct mount *mntp, int (**specops)(void *), int (**fifoops)(void *),
case VFIFO: case VFIFO:
vp->v_op = fifoops; vp->v_op = fifoops;
break; break;
case VNON:
case VBAD: case VBAD:
case VSOCK: case VSOCK:
case VLNK: case VLNK:
case VDIR: case VDIR:
case VREG: case VREG:
break; break;
case VNON:
#ifdef DIAGNOSTIC
default:
panic("ufs_vinit: ino %d: bad mode %x", ip->i_number,
ip->i_mode);
#else
break;
#endif
} }
if (ip->i_number == ROOTINO) if (ip->i_number == ROOTINO)
vp->v_flag |= VROOT; vp->v_flag |= VROOT;