diff options
author | Matt Jacob <mjacob@FreeBSD.org> | 2002-11-11 11:50:03 +0000 |
---|---|---|
committer | Matt Jacob <mjacob@FreeBSD.org> | 2002-11-11 11:50:03 +0000 |
commit | 81f71edaecb98c9f866d4f4e73973f46b53f79e0 (patch) | |
tree | 6045ed31985d52907a481f015d08501fccf8a3e0 /sys/vm/uma_dbg.c | |
parent | 34fa8213c34a771b1125d78c32e9d276c5a97594 (diff) | |
download | src-test2-81f71edaecb98c9f866d4f4e73973f46b53f79e0.tar.gz src-test2-81f71edaecb98c9f866d4f4e73973f46b53f79e0.zip |
Notes
Diffstat (limited to 'sys/vm/uma_dbg.c')
-rw-r--r-- | sys/vm/uma_dbg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/vm/uma_dbg.c b/sys/vm/uma_dbg.c index a1009e95ee3c..ebdba40c95a8 100644 --- a/sys/vm/uma_dbg.c +++ b/sys/vm/uma_dbg.c @@ -199,9 +199,7 @@ uma_dbg_getslab(uma_zone_t zone, void *item) if (zone->uz_flags & UMA_ZFLAG_MALLOC) { slab = vtoslab((vm_offset_t)mem); } else if (zone->uz_flags & UMA_ZFLAG_HASH) { - ZONE_LOCK(zone); slab = hash_sfind(&zone->uz_hash, mem); - ZONE_UNLOCK(zone); } else { mem += zone->uz_pgoff; slab = (uma_slab_t)mem; @@ -230,7 +228,7 @@ uma_dbg_alloc(uma_zone_t zone, uma_slab_t slab, void *item) freei = ((unsigned long)item - (unsigned long)slab->us_data) / zone->uz_rsize; - atomic_set_8(&slab->us_freelist[freei], 255); + slab->us_freelist[freei] = 255; return; } @@ -279,5 +277,5 @@ uma_dbg_free(uma_zone_t zone, uma_slab_t slab, void *item) * Until then the count of valid slabs will make sure we don't * accidentally follow this and assume it's a valid index. */ - atomic_set_8(&slab->us_freelist[freei], 0); + slab->us_freelist[freei] = 0; } |