PERFORCE change 90646 for review
Alan Cox
alc at FreeBSD.org
Sun Jan 29 13:14:02 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=90646
Change 90646 by alc at alc_home on 2006/01/29 21:13:50
Eliminate unused code.
Affected files ...
.. //depot/projects/superpages/src/sys/vm/vm_buddy.c#9 edit
.. //depot/projects/superpages/src/sys/vm/vm_buddy.h#7 edit
Differences ...
==== //depot/projects/superpages/src/sys/vm/vm_buddy.c#9 (text+ko) ====
@@ -53,30 +53,6 @@
SYSCTL_OID(_vm, OID_AUTO, buddy, CTLTYPE_STRING | CTLFLAG_RD,
NULL, 0, sysctl_vm_buddy, "A", "Buddy Info");
-#ifdef PEDANTIC
-/*
- * not exhaustive... just the ones I've had trouble with
- */
-void
-buddy_invariants(char *file, int line)
-{
- int q, i;
-
- static int n = 0;
- if ((++n)%10000 == 0) printf("=%d=",n/10000);
-
- for (q=0; q<BUDDY_QUEUES; q++) {
- vm_page_t p;
- TAILQ_FOREACH(p, &vm_page_queues[PQ_FREE+q].pl, pageq) {
- for (i=0; i<(1<<q); i++) {
- vm_page_t m = PHYS_TO_VM_PAGE(p->phys_addr + i*PAGE_SIZE);
- INVARIANT(!m->reserv || m->flags & PG_CACHE);
- }
- }
- }
-}
-#endif
-
/*
*
*/
==== //depot/projects/superpages/src/sys/vm/vm_buddy.h#7 (text+ko) ====
@@ -1,7 +1,5 @@
/* Buddy Allocator definitions */
-void buddy_invariants(char *, int);
-
vm_page_t buddy_alloc(int magn, boolean_t prefer_zero);
vm_page_t buddy_alloc_locked(int magn, boolean_t prefer_zero);
void buddy_free(vm_page_t m, int magn);
More information about the p4-projects
mailing list