freebsd-dev/sys/compat/opensolaris/kern
Pawel Jakub Dawidek 44ce1efd91 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>
2008-01-24 11:21:54 +00:00
..
opensolaris_atomic.c - Reduce number of atomic operations needed to be implemented in asm by 2007-06-08 12:35:47 +00:00
opensolaris_kmem.c Change type of kmem_used() and kmem_size() functions to uint64_t, so it 2008-01-24 11:21:54 +00:00
opensolaris_kobj.c VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in 2008-01-13 14:44:15 +00:00
opensolaris_kstat.c Despite several examples in the kernel, the third argument of 2007-06-04 18:25:08 +00:00
opensolaris_misc.c MFp4: Reduce diff against vendor code: 2007-04-23 00:52:07 +00:00
opensolaris_policy.c Eliminate now-unused SUSER_ALLOWJAIL arguments to priv_check_cred(); in 2007-06-12 00:12:01 +00:00
opensolaris_string.c strchr() and strrchr() are already present in the kernel, but with less 2007-04-10 21:42:12 +00:00
opensolaris_vfs.c VOP_LOCK1() (and so VOP_LOCK()) and VOP_UNLOCK() are only used in 2008-01-13 14:44:15 +00:00
opensolaris_zone.c