From owner-svn-src-user@FreeBSD.ORG Tue Feb 26 00:18:50 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C67B9B17; Tue, 26 Feb 2013 00:18:50 +0000 (UTC) (envelope-from alc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id B7B97EC; Tue, 26 Feb 2013 00:18:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1Q0IoVk080358; Tue, 26 Feb 2013 00:18:50 GMT (envelope-from alc@svn.freebsd.org) Received: (from alc@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1Q0Io8o080357; Tue, 26 Feb 2013 00:18:50 GMT (envelope-from alc@svn.freebsd.org) Message-Id: <201302260018.r1Q0Io8o080357@svn.freebsd.org> From: Alan Cox Date: Tue, 26 Feb 2013 00:18:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r247290 - user/attilio/vmc-playground/sys/vm X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 00:18:50 -0000 Author: alc Date: Tue Feb 26 00:18:50 2013 New Revision: 247290 URL: http://svnweb.freebsd.org/changeset/base/247290 Log: Revise the comment describing uma_zone_reserve_kva(). Sponsored by: EMC / Isilon Storage Division Reviewed by: attilio Modified: user/attilio/vmc-playground/sys/vm/uma.h Modified: user/attilio/vmc-playground/sys/vm/uma.h ============================================================================== --- user/attilio/vmc-playground/sys/vm/uma.h Tue Feb 26 00:10:28 2013 (r247289) +++ user/attilio/vmc-playground/sys/vm/uma.h Tue Feb 26 00:18:50 2013 (r247290) @@ -432,19 +432,21 @@ void uma_reclaim(void); void uma_set_align(int align); /* - * Switches the backing object of a zone to VM_ALLOC_NOOBJ. + * Reserves the maximum KVA space required by the zone and configures the zone + * to use a VM_ALLOC_NOOBJ-based backend allocator. * * Arguments: * zone The zone to update. - * nitems The number of items previewed to be allocated. + * nitems The upper limit on the number of items that can be allocated. * * Returns: - * 0 if kva space can not be allocated + * 0 if KVA space can not be allocated * 1 if successful * * Discussion: - * The size will limit the amount of memory allocated to this zone. - * + * When the machine supports a direct map and the zone's items are smaller + * than a page, the zone will use the direct map instead of allocating KVA + * space. */ int uma_zone_reserve_kva(uma_zone_t zone, int nitems);