Skip to content

Commit c54eead

Browse files
taigerhudhowells
authored andcommitted
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
1 parent 7b2f6c3 commit c54eead

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Documentation/filesystems/caching/backend-api.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ busy.
7373
If successful, the cache backend can then start setting up the cache. In the
7474
event that the initialisation fails, the cache backend should call::
7575

76-
void fscache_relinquish_cookie(struct fscache_cache *cache);
76+
void fscache_relinquish_cache(struct fscache_cache *cache);
7777

7878
to reset and discard the cookie.
7979

@@ -125,7 +125,7 @@ outstanding accesses on the volume to complete before returning.
125125
When the the cache is completely withdrawn, fscache should be notified by
126126
calling::
127127

128-
void fscache_cache_relinquish(struct fscache_cache *cache);
128+
void fscache_relinquish_cache(struct fscache_cache *cache);
129129

130130
to clear fields in the cookie and discard the caller's ref on it.
131131

0 commit comments

Comments
 (0)