Lines Matching refs:fsc
52 int ceph_fscache_register_fs(struct ceph_fs_client* fsc) in ceph_fscache_register_fs() argument
54 const struct ceph_fsid *fsid = &fsc->client->fsid; in ceph_fscache_register_fs()
55 const char *fscache_uniq = fsc->mount_options->fscache_uniq; in ceph_fscache_register_fs()
87 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
91 fsc, 0, true); in ceph_fscache_register_fs()
93 if (fsc->fscache) { in ceph_fscache_register_fs()
94 ent->fscache = fsc->fscache; in ceph_fscache_register_fs()
140 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); in ceph_fscache_register_inode_cookie() local
144 if (!fsc->fscache) in ceph_fscache_register_inode_cookie()
157 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
309 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) in ceph_fscache_unregister_fs() argument
311 if (fscache_cookie_valid(fsc->fscache)) { in ceph_fscache_unregister_fs()
317 if (ent->fscache == fsc->fscache) { in ceph_fscache_unregister_fs()
327 __fscache_relinquish_cookie(fsc->fscache, NULL, false); in ceph_fscache_unregister_fs()
329 fsc->fscache = NULL; in ceph_fscache_unregister_fs()