Re: Mounting a in-ROM filesystem efficiently

Eric W. Biederman (ebiederm@xmission.com)
23 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/