]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the calculation that determines uz_maxpages. It was off for large zones.
authorJeff Roberson <jeff@FreeBSD.org>
Sun, 14 Apr 2002 01:56:25 +0000 (01:56 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Sun, 14 Apr 2002 01:56:25 +0000 (01:56 +0000)
commitaf7f9b97b60d7a9926048e862e8ce8ab7f4d4eb0
tree14a5ee8ba40bd0f5a835fc07d495f1d3dc0ebaf2
parent6f986385810c2364c69c8994d1dadcc49fdd3915
Fix the calculation that determines uz_maxpages.  It was off for large zones.
Fortunately we have no large zones with maximums specified yet, so it wasn't
breaking anything.

Implement blocking when a zone exceeds the maximum and M_WAITOK is specified.
Previously this just failed like the old zone allocator did.  The old zone
allocator didn't support WAITOK/NOWAIT though so we should do what we
advertise.

While I was in there I cleaned up some more zalloc logic to further simplify
that code path and reduce redundant code.  This was needed to make the blocking
work properly anyway.
sys/vm/uma_core.c
sys/vm/uma_int.h