From owner-cvs-all Wed Jul 31 11:46:54 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C6D037B400; Wed, 31 Jul 2002 11:46:50 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FF3843E65; Wed, 31 Jul 2002 11:46:49 -0700 (PDT) (envelope-from alc@FreeBSD.org) Received: from freefall.freebsd.org (alc@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6VIknJU022810; Wed, 31 Jul 2002 11:46:49 -0700 (PDT) (envelope-from alc@freefall.freebsd.org) Received: (from alc@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6VIkm1M022809; Wed, 31 Jul 2002 11:46:48 -0700 (PDT) Message-Id: <200207311846.g6VIkm1M022809@freefall.freebsd.org> From: Alan Cox Date: Wed, 31 Jul 2002 11:46:48 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 pmap.c src/sys/vm vm_glue.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG alc 2002/07/31 11:46:48 PDT Modified files: sys/i386/i386 pmap.c sys/vm vm_glue.c Log: o Setting PG_MAPPED and PG_WRITEABLE on pages that are mapped and unmapped by pmap_qenter() and pmap_qremove() is pointless. In fact, it probably leads to unnecessary pmap_page_protect() calls if one of these pages is paged out after unwiring. Note: setting PG_MAPPED asserts that the page's pv list may be non-empty. Since checking the status of the page's pv list isn't any harder than checking this flag, the flag should probably be eliminated. Alternatively, PG_MAPPED could be set by pmap_enter() exclusively rather than various places throughout the kernel. Revision Changes Path 1.350 +0 -2 src/sys/i386/i386/pmap.c 1.151 +0 -2 src/sys/vm/vm_glue.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message