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/ceph/cache.h | |
| 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/ceph/cache.h')
| -rw-r--r-- | fs/ceph/cache.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/ceph/cache.h b/fs/ceph/cache.h index dc502daac49a..b804f1094764 100644 --- a/fs/ceph/cache.h +++ b/fs/ceph/cache.h @@ -57,13 +57,6 @@ static inline int ceph_fscache_dirty_folio(struct address_space *mapping, return fscache_dirty_folio(mapping, folio, ceph_fscache_cookie(ci)); } -static inline int ceph_begin_cache_operation(struct netfs_io_request *rreq) -{ - struct fscache_cookie *cookie = ceph_fscache_cookie(ceph_inode(rreq->inode)); - - return fscache_begin_read_operation(&rreq->cache_resources, cookie); -} - static inline bool ceph_is_cache_enabled(struct inode *inode) { return fscache_cookie_enabled(ceph_fscache_cookie(ceph_inode(inode))); @@ -135,11 +128,6 @@ static inline bool ceph_is_cache_enabled(struct inode *inode) return false; } -static inline int ceph_begin_cache_operation(struct netfs_io_request *rreq) -{ - return -ENOBUFS; -} - static inline void ceph_fscache_note_page_release(struct inode *inode) { } |
