Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764954AbZLQRHu (ORCPT ); Thu, 17 Dec 2009 12:07:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762703AbZLQRHr (ORCPT ); Thu, 17 Dec 2009 12:07:47 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:51694 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754884AbZLQRHq (ORCPT ); Thu, 17 Dec 2009 12:07:46 -0500 Date: Thu, 17 Dec 2009 12:07:44 -0500 From: Christoph Hellwig To: Linus Torvalds Cc: tytso@mit.edu, Kyle McMartin , linux-parisc@vger.kernel.org, Linux Kernel Mailing List , James.Bottomley@suse.de, hch@infradead.org, linux-arch@vger.kernel.org, Jens Axboe Subject: Re: [git patches] xfs and block fixes for virtually indexed arches Message-ID: <20091217170743.GA10431@infradead.org> References: <20091216043618.GB9104@hera.kernel.org> <20091217132256.GO28962@bombadil.infradead.org> <20091217163036.GE2123@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1209 Lines: 22 On Thu, Dec 17, 2009 at 08:46:33AM -0800, Linus Torvalds wrote: > The whole "vmalloc is special" has always been true. If you want to > treat vmalloc as normal memory, you need to look up the pages yourself. We > have helpers for that (including helpers that populate vmalloc space from > a page array to begin with - so you can _start_ from some array of pages > and then lay them out virtually if you want to have a convenient CPU > access to the array). Which is exactly what the XFS code does. Pages are allocated manually and we store pointers to the page struct that later get added to the bio. But we access them through vmap (which I added exactly for this reason back in 2002) for kernel accesses. On all architectures with sane caches things just work, but for parisc, arm and friends that have virtually indexed caches we need to make sure to flush caches for this different access. The vmalloc linear address is not used for I/O everywhere. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/