[Linux-cachefs] Re: [PATCH 5/7] FS-Cache: Generic filesystem caching facility

David Howells dhowells at redhat.com
Fri Apr 21 19:33:49 UTC 2006


Andrew Morton <akpm at osdl.org> wrote:

> > Modules that might depend on fscache need to know that it's there,
> 
> In theory, module A isn't supposed to care whether module B was configured,
> because module B might be compiled separately, or dowloaded from elsewhere
> or whatever.

In this case it's sort of necessary - unless you're suggesting I make FS-Cache
mandatory...

The problem is that I don't want NFS or whatever to be carrying around the
cookie pointers if FS-Cache isn't compiled as that saves memory.  But that
involves conditionally changing the composition of structures, something
that's most clearly done with cpp-conditionals.

David




More information about the Linux-cachefs mailing list