From owner-cvs-all Sun Jan 21 23: 2:10 2001 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 0031C37B401; Sun, 21 Jan 2001 23:01:51 -0800 (PST) Received: (from des@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0M71pv82114; Sun, 21 Jan 2001 23:01:51 -0800 (PST) (envelope-from des) Message-Id: <200101220701.f0M71pv82114@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: Sun, 21 Jan 2001 23:01:51 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vm_zone.c vm_zone.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG des 2001/01/21 23:01:51 PST Modified files: sys/vm vm_zone.c vm_zone.h Log: Give this code a major facelift: - replace the simplelock in struct vm_zone with a mutex. - use a proper SLIST rather than a hand-rolled job for the zone list. - add a subsystem lock that protects the zone list and the statistics counters. - merge _zalloc() into zalloc() and _zfree() into zfree(), and move them below _zget() so there's no need for a prototype. - add two initialization functions: one which initializes the subsystem mutex and the zone list, and one that currently doesn't do anything. - zap zerror(); use KASSERTs instead. - dike out half of sysctl_vm_zone(), which was mostly trying to do manually what the snprintf() call could do better. Reviewed by: jhb, jasone Revision Changes Path 1.38 +151 -222 src/sys/vm/vm_zone.c 1.16 +16 -13 src/sys/vm/vm_zone.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message