Replace original rev 1.3; Author: bde; Date: 1997/02/25 17:24:43;

Fix counting of simplelocks in SIMPLELOCK_DEBUG
Fix style regression
This commit is contained in:
Peter Wemm 1997-03-25 16:38:01 +00:00
parent 4bdb9b1168
commit 356b94e0d3

View File

@ -48,7 +48,7 @@
* Locks provide shared/exclusive sychronization.
*/
#ifdef DEBUG
#ifdef SIMPLELOCK_DEBUG
#define COUNT(p, x) if (p) (p)->p_locks += (x)
#else
#define COUNT(p, x)
@ -171,9 +171,8 @@ lockmgr(lkp, flags, interlkp, p)
else
pid = LK_KERNPROC;
simple_lock(&lkp->lk_interlock);
if (flags & LK_INTERLOCK) {
if (flags & LK_INTERLOCK)
simple_unlock(interlkp);
}
extflags = (flags | lkp->lk_flags) & LK_EXTFLG_MASK;
#ifdef DIAGNOSTIC
/*