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

David Howells
2006-04-21T19:34:09Z

Andrew Morton <akpm@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