]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f425bc3cf07e6597c2062759c620aa7835b29b5
treee13793dfdc27b40a31150029b30904f0eba699d3
parenta4cac5ddabf123bc236afc69c82b5b3fea8b11ab
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