diff options
author | jhb <jhb@FreeBSD.org> | 2001-09-27 21:04:13 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-09-27 21:04:13 +0000 |
commit | fe3fc4701b03fb7a4021114f5168d98854088125 (patch) | |
tree | 7f1167c08b6cb40114e0127e8a8f8ed6831ce735 /sys | |
parent | 4ebf82a6d43e116543f9b20a62b459ccf930cb89 (diff) | |
download | FreeBSD-src-fe3fc4701b03fb7a4021114f5168d98854088125.zip FreeBSD-src-fe3fc4701b03fb7a4021114f5168d98854088125.tar.gz |
- 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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_softdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |