lkml.org 
[lkml]   [2002]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Mounting a in-ROM filesystem efficiently
From
Date
David Woodhouse <dwmw2@infradead.org> writes:

> brad@ltc.com said:
> > That sounds nice, but I cannot imagine how much trouble it would be
> > to implement.
>
> Adding the pages to the page cache on read_inode() is fairly simple. Hacking
> the kernel so that readpage() can provide its own page less so.

Well the generic solution is to simply skip readpage and provide (for your fs)
your own versions of generic_file_read and filemap_nopage. At least
if you want to do it on demand...

Eric

-
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: 2005-03-22 13:15    [from the cache]
©2003-2011 Jasper Spaans