Re: [PATCH 2.6.21] cramfs: add cramfs Linear XIP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux