From owner-cvs-all Sat Apr 13 18:56:29 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D6CE137B405; Sat, 13 Apr 2002 18:56:25 -0700 (PDT) Received: (from jeff@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3E1uPZ48087; Sat, 13 Apr 2002 18:56:25 -0700 (PDT) (envelope-from jeff) Message-Id: <200204140156.g3E1uPZ48087@freefall.freebsd.org> From: Jeff Roberson Date: Sat, 13 Apr 2002 18:56:25 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm uma_core.c uma_int.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jeff 2002/04/13 18:56:25 PDT Modified files: sys/vm uma_core.c uma_int.h Log: 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. Revision Changes Path 1.12 +51 -28 src/sys/vm/uma_core.c 1.7 +2 -0 src/sys/vm/uma_int.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message