Lines Matching refs:fsc

40 	const struct ceph_fs_client* fsc = cookie_netfs_data;  in ceph_fscache_session_get_key()  local
43 klen = sizeof(fsc->client->fsid); in ceph_fscache_session_get_key()
47 memcpy(buffer, &fsc->client->fsid, klen); in ceph_fscache_session_get_key()
67 int ceph_fscache_register_fs(struct ceph_fs_client* fsc) in ceph_fscache_register_fs() argument
69 fsc->fscache = fscache_acquire_cookie(ceph_cache_netfs.primary_index, in ceph_fscache_register_fs()
71 fsc, true); in ceph_fscache_register_fs()
73 if (fsc->fscache == NULL) { in ceph_fscache_register_fs()
74 pr_err("Unable to resgister fsid: %p fscache cookie", fsc); in ceph_fscache_register_fs()
78 fsc->revalidate_wq = alloc_workqueue("ceph-revalidate", 0, 1); in ceph_fscache_register_fs()
79 if (fsc->revalidate_wq == NULL) in ceph_fscache_register_fs()
186 void ceph_fscache_register_inode_cookie(struct ceph_fs_client* fsc, in ceph_fscache_register_inode_cookie() argument
192 if (fsc->fscache == NULL) in ceph_fscache_register_inode_cookie()
205 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie()
335 void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) in ceph_fscache_unregister_fs() argument
337 if (fsc->revalidate_wq) in ceph_fscache_unregister_fs()
338 destroy_workqueue(fsc->revalidate_wq); in ceph_fscache_unregister_fs()
340 fscache_relinquish_cookie(fsc->fscache, 0); in ceph_fscache_unregister_fs()
341 fsc->fscache = NULL; in ceph_fscache_unregister_fs()
379 struct ceph_fs_client *fsc = ceph_sb_to_client(inode->i_sb); in ceph_queue_revalidate() local
382 if (fsc->revalidate_wq == NULL || ci->fscache == NULL) in ceph_queue_revalidate()