summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorYue Hu <huyue2@coolpad.com>2022-04-07 12:28:32 +0200
committerDavid Howells <dhowells@redhat.com>2022-04-09 00:54:37 +0200
commitc54eead2a66914a36b4a9ea5bbeb95a768307cba (patch)
tree512c07e290f009af3e11ed49ce381da03f654d95 /Documentation
parentcachefiles: Fix KASAN slab-out-of-bounds in cachefiles_set_volume_xattr (diff)
downloadlinux-c54eead2a66914a36b4a9ea5bbeb95a768307cba.tar.xz
linux-c54eead2a66914a36b4a9ea5bbeb95a768307cba.zip
docs: filesystems: caching/backend-api.rst: correct two relinquish APIs use
1. cache backend is using fscache_relinquish_cache() rather than fscache_relinquish_cookie() to reset the cache cookie. 2. No fscache_cache_relinquish() helper currently, it should be fscache_relinquish_cache(). Signed-off-by: Yue Hu <huyue2@coolpad.com> Signed-off-by: David Howells <dhowells@redhat.com> cc: linux-cachefs@redhat.com Link: https://listman.redhat.com/archives/linux-cachefs/2022-April/006703.html # v1 Link: https://listman.redhat.com/archives/linux-cachefs/2022-April/006704.html # v2
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/filesystems/caching/backend-api.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/filesystems/caching/backend-api.rst b/Documentation/filesystems/caching/backend-api.rst
index be793c49a772..d7b2df5fd607 100644
--- a/Documentation/filesystems/caching/backend-api.rst
+++ b/Documentation/filesystems/caching/backend-api.rst
@@ -73,7 +73,7 @@ busy.
If successful, the cache backend can then start setting up the cache. In the
event that the initialisation fails, the cache backend should call::
- void fscache_relinquish_cookie(struct fscache_cache *cache);
+ void fscache_relinquish_cache(struct fscache_cache *cache);
to reset and discard the cookie.
@@ -125,7 +125,7 @@ outstanding accesses on the volume to complete before returning.
When the the cache is completely withdrawn, fscache should be notified by
calling::
- void fscache_cache_relinquish(struct fscache_cache *cache);
+ void fscache_relinquish_cache(struct fscache_cache *cache);
to clear fields in the cookie and discard the caller's ref on it.