Date: Sun, 29 Jan 2006 21:14:01 GMT From: Alan Cox <alc@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90646 for review Message-ID: <200601292114.k0TLE1s4001753@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90646 Change 90646 by alc@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601292114.k0TLE1s4001753>