[Linux-cachefs] Writing to the cache

David Howells dhowells at redhat.com
Tue Sep 5 14:08:39 UTC 2006


Derek Siu <golf1123 at gmail.com> wrote:

> After I called fscache_write_page to write a page to the cache, I
> called both the fscache_read_or_alloc_page and
> fscache_read_or_alloc_pages. Only the first function can find the
> page. The second function returns ENODATA. Do I have to do anything
> after calling fscache_write_page? I've read through the nfs source but
> I can't find any special functions being called after
> fscache_write_page.

It's always possible that the backing file (I presume you are using cachefiles)
got deleted, though if it does this every time, that would seem surprising.

What version of kernel and patches are you using?

David




More information about the Linux-cachefs mailing list