Lines Matching refs:fsc
47 int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc) in ceph_fscache_register_fs() argument
49 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs()
50 const char *fscache_uniq = fsc->mount_options->fscache_uniq; in ceph_fscache_register_fs()
82 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
86 fsc, 0, true); in ceph_fscache_register_fs()
88 if (fsc->fscache) { in ceph_fscache_register_fs()
89 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
129 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_fscache_register_inode_cookie() local
132 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
141 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
189 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) in ceph_fscache_unregister_fs() argument
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()