Lines Matching refs:fsc
53 int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc) in ceph_fscache_register_fs() argument
55 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs()
56 const char *fscache_uniq = fsc->mount_options->fscache_uniq; in ceph_fscache_register_fs()
88 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
92 fsc, 0, true); in ceph_fscache_register_fs()
94 if (fsc->fscache) { in ceph_fscache_register_fs()
95 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
141 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_fscache_register_inode_cookie() local
145 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
158 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
206 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) in ceph_fscache_unregister_fs() argument
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()