move the assert after the locked case.
This commit is contained in:
parent
b10bf4690c
commit
b43ddeabe0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: coda_vnops.c,v 1.85 2012/05/02 16:51:01 christos Exp $ */
|
||||
/* $NetBSD: coda_vnops.c,v 1.86 2012/05/03 14:26:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -46,7 +46,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.85 2012/05/02 16:51:01 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: coda_vnops.c,v 1.86 2012/05/03 14:26:42 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1953,8 +1953,6 @@ coda_getpages(void *v)
|
|||
int waslocked; /* 1 if vnode lock was held on entry */
|
||||
int didopen = 0; /* 1 if we opened container file */
|
||||
|
||||
KASSERT(mutex_owned(vp->v_interlock));
|
||||
|
||||
/*
|
||||
* Handle a case that uvm_fault doesn't quite use yet.
|
||||
* See layer_vnops.c. for inspiration.
|
||||
|
@ -1963,6 +1961,8 @@ coda_getpages(void *v)
|
|||
return EBUSY;
|
||||
}
|
||||
|
||||
KASSERT(mutex_owned(vp->v_interlock));
|
||||
|
||||
/* Check for control object. */
|
||||
if (IS_CTL_VP(vp)) {
|
||||
printf("%s: control object %p\n", __func__, vp);
|
||||
|
|
Loading…
Reference in New Issue