summaryrefslogtreecommitdiff
path: root/include/linux/fscache.h
diff options
context:
space:
mode:
authorYue Hu <huyue2@coolpad.com>2022-04-06 06:50:17 +0300
committerDavid Howells <dhowells@redhat.com>2022-04-09 01:54:37 +0300
commit2c547f299827c12244d613eb2ee3616d88f56088 (patch)
treea0fb919271bf9e5451cb280cb7c7bcb0bd8503ac /include/linux/fscache.h
parent5d3d5b9645b53691b2eee7607cf995bcfae46dd0 (diff)
downloadlinux-2c547f299827c12244d613eb2ee3616d88f56088.tar.xz
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 'include/linux/fscache.h')
-rw-r--r--include/linux/fscache.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/fscache.h b/include/linux/fscache.h
index 6727fb0db619..e25539072463 100644
--- a/include/linux/fscache.h
+++ b/include/linux/fscache.h
@@ -573,7 +573,6 @@ int fscache_write(struct netfs_cache_resources *cres,
/**
* fscache_clear_page_bits - Clear the PG_fscache bits from a set of pages
- * @cookie: The cookie representing the cache object
* @mapping: The netfs inode to use as the source
* @start: The start position in @mapping
* @len: The amount of data to unlock
@@ -582,8 +581,7 @@ int fscache_write(struct netfs_cache_resources *cres,
* Clear the PG_fscache flag from a sequence of pages and wake up anyone who's
* waiting.
*/
-static inline void fscache_clear_page_bits(struct fscache_cookie *cookie,
- struct address_space *mapping,
+static inline void fscache_clear_page_bits(struct address_space *mapping,
loff_t start, size_t len,
bool caching)
{