FS-Cache: Provide a slab for cookie allocation
authorDavid Howells <dhowells@redhat.com>
Fri, 3 Apr 2009 15:42:38 +0000 (16:42 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 3 Apr 2009 15:42:38 +0000 (16:42 +0100)
commit955d00917f0c094e0f2fb88df967e980ab66b8ca
treec6109684239fd45462e494fb4f26aa8e2e651922
parent4c515dd47ab41be3f89e757d441661795470b376
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>
fs/fscache/Makefile
fs/fscache/cookie.c [new file with mode: 0644]
fs/fscache/internal.h
fs/fscache/main.c