From owner-svn-src-all@FreeBSD.ORG Wed Oct 20 05:17:24 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49E991065670; Wed, 20 Oct 2010 05:17:24 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2D1538FC0C; Wed, 20 Oct 2010 05:17:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9K5HONJ038352; Wed, 20 Oct 2010 05:17:24 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9K5HOa4038347; Wed, 20 Oct 2010 05:17:24 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201010200517.o9K5HOa4038347@svn.freebsd.org> From: Andriy Gapon Date: Wed, 20 Oct 2010 05:17:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214095 - in head: share/man/man9 sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2010 05:17:24 -0000 Author: avg Date: Wed Oct 20 05:17:23 2010 New Revision: 214095 URL: http://svn.freebsd.org/changeset/base/214095 Log: PG_BUSY -> VPO_BUSY, PG_WANTED -> VPO_WANTED in manual pages and comments Reviewed by: alc MFC after: 4 days Modified: head/share/man/man9/vm_page_io.9 head/share/man/man9/vm_page_sleep_busy.9 head/share/man/man9/vm_page_wakeup.9 head/sys/vm/swap_pager.c Modified: head/share/man/man9/vm_page_io.9 ============================================================================== --- head/share/man/man9/vm_page_io.9 Wed Oct 20 04:53:03 2010 (r214094) +++ head/share/man/man9/vm_page_io.9 Wed Oct 20 05:17:23 2010 (r214095) @@ -52,9 +52,9 @@ function lowers the busy count on the pa count is zero, a .Xr wakeup 9 will be issued if the page has been marked -.Dv PG_WANTED . +.Dv VPO_WANTED . A page is typically marked -.Dv PG_WANTED +.Dv VPO_WANTED by a thread to register its interest in the page to either complete I/O or becoming available for general use. .Sh AUTHORS Modified: head/share/man/man9/vm_page_sleep_busy.9 ============================================================================== --- head/share/man/man9/vm_page_sleep_busy.9 Wed Oct 20 04:53:03 2010 (r214094) +++ head/share/man/man9/vm_page_sleep_busy.9 Wed Oct 20 05:17:23 2010 (r214095) @@ -42,7 +42,7 @@ The .Fn vm_page_sleep_busy function waits until the -.Dv PG_BUSY +.Dv VPO_BUSY flag is cleared. If .Fa also_m_busy Modified: head/share/man/man9/vm_page_wakeup.9 ============================================================================== --- head/share/man/man9/vm_page_wakeup.9 Wed Oct 20 04:53:03 2010 (r214094) +++ head/share/man/man9/vm_page_wakeup.9 Wed Oct 20 05:17:23 2010 (r214095) @@ -50,20 +50,20 @@ of a page. .Pp .Fn vm_page_busy sets the -.Dv PG_BUSY +.Dv VPO_BUSY flag in the page. .Pp .Fn vm_page_flash checks to see if there is anybody waiting on the page -.Dv ( PG_WANTED +.Dv ( VPO_WANTED will be set), and if so, clears the -.Dv PG_WANTED +.Dv VPO_WANTED flag and notifies whoever is waiting via .Fn wakeup . .Pp .Fn vm_page_wakeup clears the -.Dv PG_BUSY +.Dv VPO_BUSY flag on the page, and calls .Fn vm_page_flash in case somebody has been waiting for it. Modified: head/sys/vm/swap_pager.c ============================================================================== --- head/sys/vm/swap_pager.c Wed Oct 20 04:53:03 2010 (r214094) +++ head/sys/vm/swap_pager.c Wed Oct 20 05:17:23 2010 (r214095) @@ -1460,8 +1460,8 @@ swap_pager_putpages(vm_object_t object, * Completion routine for asynchronous reads and writes from/to swap. * Also called manually by synchronous code to finish up a bp. * - * For READ operations, the pages are PG_BUSY'd. For WRITE operations, - * the pages are vm_page_t->busy'd. For READ operations, we PG_BUSY + * For READ operations, the pages are VPO_BUSY'd. For WRITE operations, + * the pages are vm_page_t->busy'd. For READ operations, we VPO_BUSY * unbusy all pages except the 'main' request page. For WRITE * operations, we vm_page_t->busy'd unbusy all pages ( we can do this * because we marked them all VM_PAGER_PEND on return from putpages ).