]> 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)
commit01d7eff03c01df9561719499fc956a25c45e1d3f
treee13793dfdc27b40a31150029b30904f0eba699d3
parent638f8e23cb82a3d631ac4da0df6f91ab03c118e3
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