lkml.org 
[lkml]   [2002]   [Jan]   [23]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Mounting a in-ROM filesystem efficiently
From(Eric W. Biederman)
Date23 Jan 2002 01:01:47 -0700
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 12:15    [W:0.867 / U:0.050 seconds]
©2003-2008 Jasper Spaans