]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
fscache: Provide and use cache methods to lookup/create/free a volume
authorDavid Howells <dhowells@redhat.com>
Wed, 20 Oct 2021 14:26:17 +0000 (15:26 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 14:28:52 +0000 (14:28 +0000)
commit28b439d1bd02a83fdb0772013d0aa431b047975b
treee86b756629dc7702885d92e69cec1ed14355a4e0
parent8604445e3b66c55589e7d473a5379ab54ab440d3
fscache: Provide and use cache methods to lookup/create/free a volume

Add cache methods to lookup, create and remove a volume.

Looking up or creating the volume requires the cache pinning for access;
freeing the volume requires the volume pinning for access.  The
->acquire_volume() method is used to ask the cache backend to lookup and,
if necessary, create a volume; the ->free_volume() method is used to free
the resources for a volume.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
fs/fscache/volume.c
include/linux/fscache-cache.h
include/trace/events/fscache.h