diff options
author | 2021-10-20 15:26:17 +0100 | |
---|---|---|
committer | 2022-01-07 09:22:19 +0000 | |
commit | bfa22da3ed652aa15acd4246fa13a0de6dbe4a59 (patch) | |
tree | 8ff907c2502d7f1576b1db58156085b68d094b9b /include/linux/writeback.h | |
parent | fscache: Implement functions add/remove a cache (diff) | |
download | linux-rng-bfa22da3ed652aa15acd4246fa13a0de6dbe4a59.tar.xz linux-rng-bfa22da3ed652aa15acd4246fa13a0de6dbe4a59.zip |
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>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/163819597821.215744.5225318658134989949.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/163906898645.143852.8537799955945956818.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/163967099771.1823006.1455197910571061835.stgit@warthog.procyon.org.uk/ # v3
Link: https://lore.kernel.org/r/164021507345.640689.4073511598838843040.stgit@warthog.procyon.org.uk/ # v4
Diffstat (limited to 'include/linux/writeback.h')
0 files changed, 0 insertions, 0 deletions