From owner-svn-src-projects@FreeBSD.ORG Thu Jul 29 04:26:56 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5B9C106566B; Thu, 29 Jul 2010 04:26:56 +0000 (UTC) (envelope-from alc@cs.rice.edu) Received: from mail.cs.rice.edu (mail.cs.rice.edu [128.42.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id 7E08B8FC12; Thu, 29 Jul 2010 04:26:56 +0000 (UTC) Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id 493BA2C2C54; Wed, 28 Jul 2010 22:53:55 -0500 (CDT) X-Virus-Scanned: by amavis-2.4.0 at mail.cs.rice.edu Received: from mail.cs.rice.edu ([127.0.0.1]) by mail.cs.rice.edu (mail.cs.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Q6AP-4PxEWP5; Wed, 28 Jul 2010 22:53:47 -0500 (CDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.rice.edu (Postfix) with ESMTP id 5E9672C2ACE; Wed, 28 Jul 2010 22:53:47 -0500 (CDT) Message-ID: <4C50FB4A.4000505@cs.rice.edu> Date: Wed, 28 Jul 2010 22:53:46 -0500 From: Alan Cox User-Agent: Thunderbird 2.0.0.24 (X11/20100501) MIME-Version: 1.0 To: Jeff Roberson References: <201007290212.o6T2CN20099343@svn.freebsd.org> In-Reply-To: <201007290212.o6T2CN20099343@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r210586 - projects/ofed/head/sys/ofed/include/linux X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2010 04:26:56 -0000 Jeff Roberson wrote: > Author: jeff > Date: Thu Jul 29 02:12:22 2010 > New Revision: 210586 > URL: http://svn.freebsd.org/changeset/base/210586 > > Log: > - Refine various page allocation methods. They all essentially override > the page object pointer to cache the virtual address after allocation. > This same trick is used in UMA to store the slab address and so it > should be safe. > > You needn't do this. The virtual address of a kernel_object or kmem_object page is easily obtained: VM_MIN_KERNEL_ADDRESS + IDX_TO_OFF(m->pindex) Regards, Alan