Lines Matching refs:fscache
31 struct fscache_cookie *fscache; member
88 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
94 if (fsc->fscache) { in ceph_fscache_register_fs()
95 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
145 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
153 if (!ci->fscache) { in ceph_fscache_register_inode_cookie()
158 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
171 if ((cookie = ci->fscache) == NULL) in ceph_fscache_unregister_inode_cookie()
174 ci->fscache = NULL; in ceph_fscache_unregister_inode_cookie()
190 if (!fscache_cookie_valid(ci->fscache)) in ceph_fscache_file_set_cookie()
196 fscache_disable_cookie(ci->fscache, &ci->i_vino, false); in ceph_fscache_file_set_cookie()
197 fscache_uncache_all_inode_pages(ci->fscache, inode); in ceph_fscache_file_set_cookie()
199 fscache_enable_cookie(ci->fscache, &ci->i_vino, i_size_read(inode), in ceph_fscache_file_set_cookie()
201 if (fscache_cookie_enabled(ci->fscache)) { in ceph_fscache_file_set_cookie()
235 ret = fscache_read_or_alloc_page(ci->fscache, page, in ceph_readpage_from_fscache()
264 ret = fscache_read_or_alloc_pages(ci->fscache, mapping, pages, nr_pages, in ceph_readpages_from_fscache()
293 ret = fscache_write_page(ci->fscache, page, i_size_read(inode), in ceph_readpage_to_fscache()
296 fscache_uncache_page(ci->fscache, page); in ceph_readpage_to_fscache()
306 fscache_wait_on_page_write(ci->fscache, page); in ceph_invalidate_fscache_page()
307 fscache_uncache_page(ci->fscache, page); in ceph_invalidate_fscache_page()
312 if (fscache_cookie_valid(fsc->fscache)) { in ceph_fscache_unregister_fs()
318 if (ent->fscache == fsc->fscache) { in ceph_fscache_unregister_fs()
328 __fscache_relinquish_cookie(fsc->fscache, NULL, false); in ceph_fscache_unregister_fs()
330 fsc->fscache = NULL; in ceph_fscache_unregister_fs()
345 if (fscache_check_consistency(ci->fscache, &ci->i_vino)) in ceph_fscache_revalidate_cookie()
346 fscache_invalidate(ci->fscache); in ceph_fscache_revalidate_cookie()