linux/fs/fscache
David Howells 726dd7ff10 FS-Cache: Add netfs registration
Add functions to register and unregister a network filesystem or other client
of the FS-Cache service.  This allocates and releases the cookie representing
the top-level index for a netfs, and makes it available to the netfs.

If the FS-Cache facility is disabled, then the calls are optimised away at
compile time.

Note that whilst this patch may appear to work with FS-Cache enabled and a
netfs attempting to use it, it will leak the cookie it allocates for the netfs
as fscache_relinquish_cookie() is implemented in a later patch.  This will
cause the slab code to emit a warning when the module is removed.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Tested-by: Daire Byrne <Daire.Byrne@framestore.com>
2009-04-03 16:42:38 +01:00
..
cache.c FS-Cache: Add cache management 2009-04-03 16:42:37 +01:00
cookie.c FS-Cache: Provide a slab for cookie allocation 2009-04-03 16:42:38 +01:00
fsdef.c FS-Cache: Root index definition 2009-04-03 16:42:37 +01:00
histogram.c
internal.h FS-Cache: Provide a slab for cookie allocation 2009-04-03 16:42:38 +01:00
Kconfig
main.c FS-Cache: Provide a slab for cookie allocation 2009-04-03 16:42:38 +01:00
Makefile FS-Cache: Add netfs registration 2009-04-03 16:42:38 +01:00
netfs.c FS-Cache: Add netfs registration 2009-04-03 16:42:38 +01:00
proc.c
stats.c