From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jared Hulbert" Subject: Re: [patch 4/6] xip: support non-struct page backed memory Date: Mon, 3 Mar 2008 15:25:15 -0800 Message-ID: <6934efce0803031525s3d95f429g2b5a0ed742f6230d@mail.gmail.com> References: <20080118045649.334391000@suse.de> <20080118045755.735923000@suse.de> <6934efce0803010014p2cc9a5edu5fee2029c0104a07@mail.gmail.com> <47CBB44D.7040203@de.ibm.com> <6934efce0803031138g725f0ec4ra683d56615b7dbe0@mail.gmail.com> <20080303203202.GI8974@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Nick Piggin" , carsteno@de.ibm.com, "Andrew Morton" , mschwid2@linux.vnet.ibm.com, heicars2@linux.vnet.ibm.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org To: "Linus Torvalds" Return-path: Received: from gv-out-0910.google.com ([216.239.58.185]:19009 "EHLO gv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754388AbYCCXZV (ORCPT ); Mon, 3 Mar 2008 18:25:21 -0500 Received: by gv-out-0910.google.com with SMTP id s4so241011gve.37 for ; Mon, 03 Mar 2008 15:25:17 -0800 (PST) In-Reply-To: Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: > Implementing a kmap_pfn() sounds like a perfectly sane idea. But why does > it need to even be mapped into kernel space? Is it for the ELF header > reading or something (not having looked at the patch, just reacting to the > wrongness of using virt_to_phys())? Right. My AXFS prefers the filesystem image to be in memory like Flash. So it also uses the kaddr to read it's data structures and to fetch data for the readpage(). In fact, the MTD doesn't provide access to the physical address of a given partition without a patch.