summaryrefslogtreecommitdiffstats
path: root/sys/contrib/opensolaris
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2008-01-24 11:21:54 +0000
committerpjd <pjd@FreeBSD.org>2008-01-24 11:21:54 +0000
commit435a09e625aa62f4e1a89ab7741d374e4c4d0954 (patch)
tree5a052f554ed6c25dc2e636388d8d7d93368703a2 /sys/contrib/opensolaris
parent1c376286e046dbe30549b705bd310d6218ffc824 (diff)
downloadFreeBSD-src-435a09e625aa62f4e1a89ab7741d374e4c4d0954.zip
FreeBSD-src-435a09e625aa62f4e1a89ab7741d374e4c4d0954.tar.gz
Change type of kmem_used() and kmem_size() functions to uint64_t, so it
doesn't overflow in arc.c in this check: if (kmem_used() > (kmem_size() * 4) / 5) return (1); With this bug ZFS almost doesn't cache. Only 32bit machines are affected that have vm.kmem_size set to values >=1GB. Reported by: David Taylor <davidt@yadt.co.uk>
Diffstat (limited to 'sys/contrib/opensolaris')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud