Date: Sun, 21 Jan 2001 23:01:51 -0800 (PST) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vm_zone.c vm_zone.h Message-ID: <200101220701.f0M71pv82114@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101220701.f0M71pv82114>
