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()
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()
197 fscache_enable_cookie(ci->fscache, &ci->i_vino, i_size_read(inode), in ceph_fscache_file_set_cookie()
199 if (fscache_cookie_enabled(ci->fscache)) { in ceph_fscache_file_set_cookie()
208 if (fscache_cookie_valid(fsc->fscache)) { in ceph_fscache_unregister_fs()
214 if (ent->fscache == fsc->fscache) { in ceph_fscache_unregister_fs()
224 __fscache_relinquish_cookie(fsc->fscache, NULL, false); in ceph_fscache_unregister_fs()
226 fsc->fscache = NULL; in ceph_fscache_unregister_fs()