lkml.org 
[lkml]   [2007]   [May]   [24]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 24 May 2007 08:57:08 +0200
FromCarsten Otte <>
SubjectRe: [PATCH 2.6.21] cramfs: add cramfs Linear XIP
Jared Hulbert wrote:
>> To me, it looks like this
>> work can be modified to use filemap_xip.
> 
> How?
First, get a struct page behind the subject file system image. A good 
idea to get there is to use vmem_map, which allows have a 
discontiguous mem_map array in virtual storage. Then add the memory 
segment's address range to it. Sparsemem also helps, if vmem_map is 
not available.

Second, implement get_xip_page for this file system. This address 
space operation needs to be provided for all files that are supposed 
to be XIP. readpage(s)/writepage(s) should not be provided for these 
files, becuase they rely on using the page cache.

Third, use file operations from mm/filemap_xip.c.

so long,
Carsten
-
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/

\
 
 \ /
  Last update: 2007-05-24 09:01    [from the cache]
©2003-2008