diff options
| author | David Howells <[email protected]> | 2023-11-20 17:09:47 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2023-12-24 15:08:48 +0000 |
| commit | 4498a8eccc97de3d65f876b6fdeddb439ef73abc (patch) | |
| tree | bf40490e0bc53c6cd0103e7040a9958b422b2e86 /fs/9p/vfs_addr.c | |
| parent | netfs, fscache: Combine fscache with netfs (diff) | |
| download | kernel-4498a8eccc97de3d65f876b6fdeddb439ef73abc.tar.gz kernel-4498a8eccc97de3d65f876b6fdeddb439ef73abc.zip | |
netfs, fscache: Remove ->begin_cache_operation
Remove ->begin_cache_operation() in favour of just calling fscache directly.
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
cc: Christian Brauner <[email protected]>
cc: [email protected]
cc: [email protected]
Diffstat (limited to 'fs/9p/vfs_addr.c')
| -rw-r--r-- | fs/9p/vfs_addr.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c index 8a635999a7d6..39db7c01e30a 100644 --- a/fs/9p/vfs_addr.c +++ b/fs/9p/vfs_addr.c @@ -82,25 +82,9 @@ static void v9fs_free_request(struct netfs_io_request *rreq) p9_fid_put(fid); } -/** - * v9fs_begin_cache_operation - Begin a cache operation for a read - * @rreq: The read request - */ -static int v9fs_begin_cache_operation(struct netfs_io_request *rreq) -{ -#ifdef CONFIG_9P_FSCACHE - struct fscache_cookie *cookie = v9fs_inode_cookie(V9FS_I(rreq->inode)); - - return fscache_begin_read_operation(&rreq->cache_resources, cookie); -#else - return -ENOBUFS; -#endif -} - const struct netfs_request_ops v9fs_req_ops = { .init_request = v9fs_init_request, .free_request = v9fs_free_request, - .begin_cache_operation = v9fs_begin_cache_operation, .issue_read = v9fs_issue_read, }; |
