Lines Matching defs:fsc
53 int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc)
55 const struct ceph_fsid *fsid = &fsc->client->fsid;
56 const char *fscache_uniq = fsc->mount_options->fscache_uniq;
70 errorfc(fc, "fscache cookie already registered for fsid %pU, use fsc=<uniquifier> option",
88 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index,
92 fsc, 0, true);
94 if (fsc->fscache) {
95 ent->fscache = fsc->fscache;
141 struct ceph_fs_client *fsc = ceph_inode_to_client(inode);
145 if (!fsc->fscache)
158 ci->fscache = fscache_acquire_cookie(fsc->fscache,
310 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc)
312 if (fscache_cookie_valid(fsc->fscache)) {
318 if (ent->fscache == fsc->fscache) {
328 __fscache_relinquish_cookie(fsc->fscache, NULL, false);
330 fsc->fscache = NULL;