fix spelling of lock_initialized.. jhb approved..
MFC after: 1 week
This commit is contained in:
parent
034bc4e978
commit
17e2456463
@ -78,7 +78,7 @@ lock_init(struct lock_object *lock, struct lock_class *class, const char *name,
|
||||
int i;
|
||||
|
||||
/* Check for double-init and zero object. */
|
||||
KASSERT(!lock_initalized(lock), ("lock \"%s\" %p already initialized",
|
||||
KASSERT(!lock_initialized(lock), ("lock \"%s\" %p already initialized",
|
||||
name, lock));
|
||||
|
||||
/* Look up lock class to find its index. */
|
||||
@ -100,7 +100,7 @@ void
|
||||
lock_destroy(struct lock_object *lock)
|
||||
{
|
||||
|
||||
KASSERT(lock_initalized(lock), ("lock %p is not initialized", lock));
|
||||
KASSERT(lock_initialized(lock), ("lock %p is not initialized", lock));
|
||||
WITNESS_DESTROY(lock);
|
||||
LOCK_LOG_DESTROY(lock, 0);
|
||||
lock->lo_flags &= ~LO_INITIALIZED;
|
||||
|
@ -178,7 +178,7 @@ struct lock_class {
|
||||
|
||||
#define LOCK_LOG_DESTROY(lo, flags) LOCK_LOG_INIT(lo, flags)
|
||||
|
||||
#define lock_initalized(lo) ((lo)->lo_flags & LO_INITIALIZED)
|
||||
#define lock_initialized(lo) ((lo)->lo_flags & LO_INITIALIZED)
|
||||
|
||||
/*
|
||||
* Helpful macros for quickly coming up with assertions with informative
|
||||
|
@ -382,7 +382,7 @@ extern struct mtx_pool *mtxpool_sleep;
|
||||
_sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \
|
||||
tick_sbt * (timo), 0, C_HARDCLOCK)
|
||||
|
||||
#define mtx_initialized(m) lock_initalized(&(m)->lock_object)
|
||||
#define mtx_initialized(m) lock_initialized(&(m)->lock_object)
|
||||
|
||||
#define mtx_owned(m) (((m)->mtx_lock & ~MTX_FLAGMASK) == (uintptr_t)curthread)
|
||||
|
||||
|
@ -218,7 +218,7 @@ void __rw_assert(const volatile uintptr_t *c, int what, const char *file,
|
||||
_sleep((chan), &(rw)->lock_object, (pri), (wmesg), \
|
||||
tick_sbt * (timo), 0, C_HARDCLOCK)
|
||||
|
||||
#define rw_initialized(rw) lock_initalized(&(rw)->lock_object)
|
||||
#define rw_initialized(rw) lock_initialized(&(rw)->lock_object)
|
||||
|
||||
struct rw_args {
|
||||
void *ra_rw;
|
||||
|
Loading…
Reference in New Issue
Block a user