diff options
author | Yue Hu <huyue2@coolpad.com> | 2022-04-06 05:50:17 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2022-04-09 00:54:37 +0200 |
commit | 2c547f299827c12244d613eb2ee3616d88f56088 (patch) | |
tree | a0fb919271bf9e5451cb280cb7c7bcb0bd8503ac /fs/fscache | |
parent | docs: filesystems: caching/backend-api.rst: fix an object withdrawn API (diff) | |
download | linux-2c547f299827c12244d613eb2ee3616d88f56088.tar.xz linux-2c547f299827c12244d613eb2ee3616d88f56088.zip |
fscache: Remove the cookie parameter from fscache_clear_page_bits()
The cookie is not used at all, remove it and update the usage in io.c
and afs/write.c (which is the only user outside of fscache currently)
at the same time.
[DH: Amended the documentation also]
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/006659.html
Diffstat (limited to 'fs/fscache')
-rw-r--r-- | fs/fscache/io.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/fscache/io.c b/fs/fscache/io.c index c8c7fe9e9a6e..3af3b08a9bb3 100644 --- a/fs/fscache/io.c +++ b/fs/fscache/io.c @@ -235,8 +235,7 @@ static void fscache_wreq_done(void *priv, ssize_t transferred_or_error, { struct fscache_write_request *wreq = priv; - fscache_clear_page_bits(fscache_cres_cookie(&wreq->cache_resources), - wreq->mapping, wreq->start, wreq->len, + fscache_clear_page_bits(wreq->mapping, wreq->start, wreq->len, wreq->set_bits); if (wreq->term_func) @@ -296,7 +295,7 @@ abandon_end: abandon_free: kfree(wreq); abandon: - fscache_clear_page_bits(cookie, mapping, start, len, cond); + fscache_clear_page_bits(mapping, start, len, cond); if (term_func) term_func(term_func_priv, ret, false); } |