Lines Matching refs:fsc
65 int ceph_fscache_register_fs(struct ceph_fs_client* fsc) in ceph_fscache_register_fs() argument
67 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs()
68 const char *fscache_uniq = fsc->mount_options->fscache_uniq; in ceph_fscache_register_fs()
100 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
104 fsc, 0, true); in ceph_fscache_register_fs()
106 if (fsc->fscache) { in ceph_fscache_register_fs()
107 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
153 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_fscache_register_inode_cookie() local
157 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
170 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
322 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) in ceph_fscache_unregister_fs() argument
324 if (fscache_cookie_valid(fsc->fscache)) { in ceph_fscache_unregister_fs()
330 if (ent->fscache == fsc->fscache) { in ceph_fscache_unregister_fs()
340 __fscache_relinquish_cookie(fsc->fscache, NULL, false); in ceph_fscache_unregister_fs()
342 fsc->fscache = NULL; in ceph_fscache_unregister_fs()