From owner-svn-src-all@FreeBSD.ORG Thu Oct 27 17:29:19 2011 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 CEAB5106566B; Thu, 27 Oct 2011 17:29:19 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BEC8E8FC15; Thu, 27 Oct 2011 17:29:19 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p9RHTJK8017231; Thu, 27 Oct 2011 17:29:19 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p9RHTJUL017229; Thu, 27 Oct 2011 17:29:19 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201110271729.p9RHTJUL017229@svn.freebsd.org> From: Alan Cox Date: Thu, 27 Oct 2011 17:29:19 +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: r226848 - head/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: Thu, 27 Oct 2011 17:29:19 -0000 Author: alc Date: Thu Oct 27 17:29:19 2011 New Revision: 226848 URL: http://svn.freebsd.org/changeset/base/226848 Log: Tidy up the comment at the head of vm_page_alloc, and mention that the returned page has the flag VPO_BUSY set. Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c ============================================================================== --- head/sys/vm/vm_page.c Thu Oct 27 17:21:41 2011 (r226847) +++ head/sys/vm/vm_page.c Thu Oct 27 17:29:19 2011 (r226848) @@ -1286,8 +1286,9 @@ vm_page_cache_transfer(vm_object_t orig_ /* * vm_page_alloc: * - * Allocate and return a memory cell associated - * with this VM object/offset pair. + * Allocate and return a page that is associated with the specified + * object and offset pair. By default, this page has the flag VPO_BUSY + * set. * * The caller must always specify an allocation class. * @@ -1297,13 +1298,14 @@ vm_page_cache_transfer(vm_object_t orig_ * VM_ALLOC_INTERRUPT interrupt time request * * optional allocation flags: - * VM_ALLOC_ZERO prefer a zeroed page - * VM_ALLOC_WIRED wire the allocated page - * VM_ALLOC_NOOBJ page is not associated with a vm object - * VM_ALLOC_NOBUSY do not set the page busy * VM_ALLOC_IFCACHED return page only if it is cached * VM_ALLOC_IFNOTCACHED return NULL, do not reactivate if the page * is cached + * VM_ALLOC_NOBUSY do not set the flag VPO_BUSY on the page + * VM_ALLOC_NOOBJ page is not associated with an object and + * should not have the flag VPO_BUSY set + * VM_ALLOC_WIRED wire the allocated page + * VM_ALLOC_ZERO prefer a zeroed page * * This routine may not sleep. */