From fe3fc4701b03fb7a4021114f5168d98854088125 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 27 Sep 2001 21:04:13 +0000 Subject: - Fix some minor whitespace nits. - Move the SPECIAL_FLAG #define up next to the NOHOLDER #define and fix a little nit that caused it to be defined as -(sizeof (struct thread) + 1) instead of -2. --- sys/ufs/ffs/ffs_softdep.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index a4a35bc..5bfa7d1 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -239,10 +239,11 @@ static struct lockit { #define FREE_LOCK_INTERLOCKED(lk) #else /* DEBUG */ -#define NOHOLDER ((struct thread *)-1) +#define NOHOLDER ((struct thread *)-1) +#define SPECIAL_FLAG ((struct thread *)-2) static struct lockit { int lkt_spl; - struct thread * lkt_held; + struct thread *lkt_held; } lk = { 0, NOHOLDER }; static int lockcnt; @@ -321,7 +322,7 @@ free_lock_interlocked(lk) */ struct sema { int value; - struct thread *holder; + struct thread *holder; char *name; int prio; int timo; @@ -3423,7 +3424,6 @@ softdep_disk_write_complete(bp) struct bmsafemap *bmsafemap; #ifdef DEBUG -#define SPECIAL_FLAG NOHOLDER-1 if (lk.lkt_held != NOHOLDER) panic("softdep_disk_write_complete: lock is held"); lk.lkt_held = SPECIAL_FLAG; -- cgit v1.1