From owner-freebsd-hackers Mon Oct 15 9:46:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from web.cs.ndsu.nodak.edu (web.cs.ndsu.NoDak.edu [134.129.125.7]) by hub.freebsd.org (Postfix) with ESMTP id C820737B409 for ; Mon, 15 Oct 2001 09:46:18 -0700 (PDT) Received: (from tinguely@localhost) by web.cs.ndsu.nodak.edu (8.11.4/8.11.4) id f9FGkGm33248; Mon, 15 Oct 2001 11:46:16 -0500 (CDT) (envelope-from tinguely) Date: Mon, 15 Oct 2001 11:46:16 -0500 (CDT) From: mark tinguely Message-Id: <200110151646.f9FGkGm33248@web.cs.ndsu.nodak.edu> To: dillon@earth.backplane.com, tinguely@web.cs.ndsu.nodak.edu Subject: Re: contigfree, free what? Cc: freebsd-hackers@FreeBSD.ORG, Patrick.Cipiere@udcast.com, tmoestl@gmx.net In-Reply-To: <200110151613.f9FGDb854996@earth.backplane.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Assuming we are using Thomas' patch that already removed the vm_page_wire() from the earlier for loop, then at the point of this VM space allocation failure, we haven't done anything too serious to the vm_page nor to the pmap, nor are they in any object. We should be able to simply place it back to the colored free list, something as easy as: *** vm_page.c Mon Oct 15 10:26:14 2001 --- vm_page.c.new Mon Oct 15 11:32:46 2001 *************** *** 1934,1939 **** --- 1934,1942 ---- * above available. */ vm_map_unlock(map); + for (i = start; i < (start + size / PAGE_SIZE); i++) { + (void)vm_add_new_page(VM_PAGE_TO_PHYS(&pga[i])); + } splx(s); return (NULL); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message