Lines Matching refs:fscache
25 struct fscache_cookie *fscache; member
82 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
88 if (fsc->fscache) { in ceph_fscache_register_fs()
89 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
132 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
140 if (!ci->fscache) { in ceph_fscache_register_inode_cookie()
141 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
154 if ((cookie = ci->fscache) == NULL) in ceph_fscache_unregister_inode_cookie()
157 ci->fscache = NULL; in ceph_fscache_unregister_inode_cookie()
172 if (!fscache_cookie_valid(ci->fscache)) in ceph_fscache_file_set_cookie()
178 fscache_disable_cookie(ci->fscache, &ci->i_vino, false); in ceph_fscache_file_set_cookie()
180 fscache_enable_cookie(ci->fscache, &ci->i_vino, i_size_read(inode), in ceph_fscache_file_set_cookie()
182 if (fscache_cookie_enabled(ci->fscache)) { in ceph_fscache_file_set_cookie()
191 if (fscache_cookie_valid(fsc->fscache)) { in ceph_fscache_unregister_fs()
197 if (ent->fscache == fsc->fscache) { in ceph_fscache_unregister_fs()
207 __fscache_relinquish_cookie(fsc->fscache, NULL, false); in ceph_fscache_unregister_fs()
209 fsc->fscache = NULL; in ceph_fscache_unregister_fs()