netfs, cachefiles: Add a method to query presence of data in the cache
authorDavid Howells <dhowells@redhat.com>
Thu, 27 Jan 2022 16:02:50 +0000 (16:02 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 1 Feb 2022 16:29:18 +0000 (10:29 -0600)
commitbee9f65523218e3baeeecde9295c8fbe9bc08e0a
treee13793dfdc27b40a31150029b30904f0eba699d3
parent052e04a52dcd3359ba1df25a508a3a93707a3f6e
netfs, cachefiles: Add a method to query presence of data in the cache

Add a netfs_cache_ops method by which a network filesystem can ask the
cache about what data it has available and where so that it can make a
multipage read more efficient.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
Acked-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Rohith Surabattula <rohiths@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Documentation/filesystems/netfs_library.rst
fs/cachefiles/io.c
include/linux/netfs.h