Lines Matching refs:fscache

30 	struct fscache_cookie *fscache;  member
87 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
93 if (fsc->fscache) { in ceph_fscache_register_fs()
94 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
144 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
152 if (!ci->fscache) { in ceph_fscache_register_inode_cookie()
157 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
170 if ((cookie = ci->fscache) == NULL) in ceph_fscache_unregister_inode_cookie()
173 ci->fscache = NULL; in ceph_fscache_unregister_inode_cookie()
189 if (!fscache_cookie_valid(ci->fscache)) in ceph_fscache_file_set_cookie()
195 fscache_disable_cookie(ci->fscache, &ci->i_vino, false); in ceph_fscache_file_set_cookie()
196 fscache_uncache_all_inode_pages(ci->fscache, inode); in ceph_fscache_file_set_cookie()
198 fscache_enable_cookie(ci->fscache, &ci->i_vino, i_size_read(inode), in ceph_fscache_file_set_cookie()
200 if (fscache_cookie_enabled(ci->fscache)) { in ceph_fscache_file_set_cookie()
234 ret = fscache_read_or_alloc_page(ci->fscache, page, in ceph_readpage_from_fscache()
263 ret = fscache_read_or_alloc_pages(ci->fscache, mapping, pages, nr_pages, in ceph_readpages_from_fscache()
292 ret = fscache_write_page(ci->fscache, page, i_size_read(inode), in ceph_readpage_to_fscache()
295 fscache_uncache_page(ci->fscache, page); in ceph_readpage_to_fscache()
305 fscache_wait_on_page_write(ci->fscache, page); in ceph_invalidate_fscache_page()
306 fscache_uncache_page(ci->fscache, page); in ceph_invalidate_fscache_page()
311 if (fscache_cookie_valid(fsc->fscache)) { in ceph_fscache_unregister_fs()
317 if (ent->fscache == fsc->fscache) { in ceph_fscache_unregister_fs()
327 __fscache_relinquish_cookie(fsc->fscache, NULL, false); in ceph_fscache_unregister_fs()
329 fsc->fscache = NULL; in ceph_fscache_unregister_fs()
344 if (fscache_check_consistency(ci->fscache, &ci->i_vino)) in ceph_fscache_revalidate_cookie()
345 fscache_invalidate(ci->fscache); in ceph_fscache_revalidate_cookie()