From 955d00917f0c094e0f2fb88df967e980ab66b8ca Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 3 Apr 2009 16:42:38 +0100 Subject: 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 Acked-by: Steve Dickson Acked-by: Trond Myklebust Acked-by: Al Viro Tested-by: Daire Byrne --- fs/fscache/internal.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'fs/fscache/internal.h') diff --git a/fs/fscache/internal.h b/fs/fscache/internal.h index 0a2069a..4c6ba56 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; -- cgit v1.1