diff options
author | David Howells <dhowells@redhat.com> | 2023-11-20 18:09:47 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2023-12-24 16:08:48 +0100 |
commit | 4498a8eccc97de3d65f876b6fdeddb439ef73abc (patch) | |
tree | bf40490e0bc53c6cd0103e7040a9958b422b2e86 /fs/afs/file.c | |
parent | netfs, fscache: Combine fscache with netfs (diff) | |
download | linux-4498a8eccc97de3d65f876b6fdeddb439ef73abc.tar.xz linux-4498a8eccc97de3d65f876b6fdeddb439ef73abc.zip |
netfs, fscache: Remove ->begin_cache_operation
Remove ->begin_cache_operation() in favour of just calling fscache directly.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: Christian Brauner <christian@brauner.io>
cc: linux-fsdevel@vger.kernel.org
cc: linux-cachefs@redhat.com
Diffstat (limited to 'fs/afs/file.c')
-rw-r--r-- | fs/afs/file.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/afs/file.c b/fs/afs/file.c index d37dd201752b..8c17e37c2e59 100644 --- a/fs/afs/file.c +++ b/fs/afs/file.c @@ -366,18 +366,6 @@ static int afs_init_request(struct netfs_io_request *rreq, struct file *file) return 0; } -static int afs_begin_cache_operation(struct netfs_io_request *rreq) -{ -#ifdef CONFIG_AFS_FSCACHE - struct afs_vnode *vnode = AFS_FS_I(rreq->inode); - - return fscache_begin_read_operation(&rreq->cache_resources, - afs_vnode_cache(vnode)); -#else - return -ENOBUFS; -#endif -} - static int afs_check_write_begin(struct file *file, loff_t pos, unsigned len, struct folio **foliop, void **_fsdata) { @@ -394,7 +382,6 @@ static void afs_free_request(struct netfs_io_request *rreq) const struct netfs_request_ops afs_req_ops = { .init_request = afs_init_request, .free_request = afs_free_request, - .begin_cache_operation = afs_begin_cache_operation, .check_write_begin = afs_check_write_begin, .issue_read = afs_issue_read, }; |