diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-12-08 13:16:22 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-12-08 13:16:22 +0000 |
commit | f2a96cd9c9ca65256572ef81828b013aff9692a4 (patch) | |
tree | a3cca27567ce958bba070235cc62351057d6b8c2 /sys/compat/linux/linux_util.h | |
parent | 143b5d29e0d9125ec7b70a1abe48aebb3989b192 (diff) | |
download | FreeBSD-src-f2a96cd9c9ca65256572ef81828b013aff9692a4.zip FreeBSD-src-f2a96cd9c9ca65256572ef81828b013aff9692a4.tar.gz |
Teach umastat about the variable-length array of per-CPU caches at the end
of struct uma_zone. It is declared as an array of size [1], but then
sized at run-time by UMA to include room for mp_maxid+1 CPUs. We have to
copy the uma_zone first at the declared structure size, then check to make
sure it's not an internal zone before copying the larger size (UMA
internal zones don't use per-CPU caches). This fixes umastat for SMP.
Diffstat (limited to 'sys/compat/linux/linux_util.h')
0 files changed, 0 insertions, 0 deletions