diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2006-07-08 20:01:14 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2006-07-08 20:01:14 +0000 |
commit | 1c136f1dc2a50611dc9b53207f4461332ca12411 (patch) | |
tree | a08983c35d155ad54caf741eacde4353d1484081 /sys/kern/vfs_subr.c | |
parent | 42e1aeed9441ac831249d1852781633836b5d4fd (diff) |
vinvalbuf() debugging aid, under VFSDEBUG.
ok pedro@
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 113d15e124a..ef84bab124d 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.130 2006/07/03 12:39:52 mickey Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.131 2006/07/08 20:01:13 thib Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -1919,6 +1919,11 @@ vinvalbuf(struct vnode *vp, int flags, struct ucred *cred, struct proc *p, struct buf *nbp, *blist; int s, error; +#ifdef VFSDEBUG + if ((vp->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(vp)) + panic("vinvalbuf(): vp isn't locked"); +#endif + if (flags & V_SAVE) { s = splbio(); vwaitforio(vp, 0, "vinvalbuf", 0); |