linux/fs/fscache
David Howells 16a96bdf92 fscache: Provide a function to resize a cookie
Provide a function to change the size of the storage attached to a cookie,
to match the size of the file being cached when it's changed by truncate or
fallocate:

	void fscache_resize_cookie(struct fscache_cookie *cookie,
				   loff_t new_size);

This acts synchronously and is expected to run under the inode lock of the
caller.

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/163819621839.215744.7895597119803515402.stgit@warthog.procyon.org.uk/ # v1
Link: https://lore.kernel.org/r/163906922387.143852.16394459879816147793.stgit@warthog.procyon.org.uk/ # v2
Link: https://lore.kernel.org/r/163967128998.1823006.10740669081985775576.stgit@warthog.procyon.org.uk/ # v3
Link: https://lore.kernel.org/r/164021527861.640689.3466382085497236267.stgit@warthog.procyon.org.uk/ # v4
2022-01-07 13:40:33 +00:00
..
cache.c fscache: Count data storage objects in a cache 2022-01-07 09:22:19 +00:00
cookie.c fscache: Implement cookie invalidation 2022-01-07 09:22:19 +00:00
internal.h fscache: Provide a function to resize a cookie 2022-01-07 13:40:33 +00:00
io.c fscache: Provide a function to resize a cookie 2022-01-07 13:40:33 +00:00
Kconfig fscache: Introduce new driver 2022-01-07 09:22:19 +00:00
main.c fscache: Implement cookie-level access helpers 2022-01-07 09:22:19 +00:00
Makefile fscache: Provide a means to begin an operation 2022-01-07 09:22:19 +00:00
proc.c fscache: Implement cookie registration 2022-01-07 09:22:19 +00:00
stats.c fscache: Provide a function to resize a cookie 2022-01-07 13:40:33 +00:00
volume.c fscache: Provide and use cache methods to lookup/create/free a volume 2022-01-07 09:22:19 +00:00