diff options
author | David Howells <dhowells@redhat.com> | 2009-04-03 16:42:38 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2009-04-03 16:42:38 +0100 |
commit | 955d00917f0c094e0f2fb88df967e980ab66b8ca (patch) | |
tree | c6109684239fd45462e494fb4f26aa8e2e651922 /fs/fscache/internal.h | |
parent | 4c515dd47ab41be3f89e757d441661795470b376 (diff) | |
download | linux-955d00917f0c094e0f2fb88df967e980ab66b8ca.tar.bz2 |
FS-Cache: Provide a slab for cookie allocation
Provide a slab from which can be allocated the FS-Cache cookies that will be
presented to the netfs.
Also provide a slab constructor and a function to recursively discard a cookie
and its ancestor chain.
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>
Diffstat (limited to 'fs/fscache/internal.h')
-rw-r--r-- | fs/fscache/internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/fscache/internal.h b/fs/fscache/internal.h index 0a2069afa417..4c6ba561e966 100644 --- a/fs/fscache/internal.h +++ b/fs/fscache/internal.h @@ -37,6 +37,14 @@ extern struct fscache_cache *fscache_select_cache_for_object( struct fscache_cookie *); /* + * fsc-cookie.c + */ +extern struct kmem_cache *fscache_cookie_jar; + +extern void fscache_cookie_init_once(void *); +extern void __fscache_cookie_put(struct fscache_cookie *); + +/* * fsc-fsdef.c */ extern struct fscache_cookie fscache_fsdef_index; |