]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
afs: Use new fscache read helper API
authorDavid Howells <dhowells@redhat.com>
Thu, 6 Feb 2020 14:22:29 +0000 (14:22 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Jan 2021 10:57:12 +0000 (10:57 +0000)
commit751551a7a74a96c591a69c0a7eb24ca4b21883d6
tree0b60bdee6f8f5a3f3f062f6e438ed6a874d7bbb9
parent0bb652b54c3ab539e794f1b092db79b93ddee439
afs: Use new fscache read helper API

Make AFS use the new fscache read helpers to implement the VM read
operations:

 - afs_readpage() now hands off responsibility to fscache_readpage().

 - afs_readpages() is gone and replaced with afs_readahead().

 - afs_readahead() just hands off responsibility to fscache_readahead().

These make use of the cache if a cookie is supplied, otherwise just call
the ->issue_op() method a sufficient number of times to complete the entire
request.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/Kconfig
fs/afs/file.c
fs/afs/fsclient.c
fs/afs/internal.h