Lines Matching refs:fsc

24 	struct ceph_fs_client *fsc = s->private;  in mdsmap_show()  local
26 if (fsc->mdsc == NULL || fsc->mdsc->mdsmap == NULL) in mdsmap_show()
28 seq_printf(s, "epoch %d\n", fsc->mdsc->mdsmap->m_epoch); in mdsmap_show()
29 seq_printf(s, "root %d\n", fsc->mdsc->mdsmap->m_root); in mdsmap_show()
31 fsc->mdsc->mdsmap->m_session_timeout); in mdsmap_show()
33 fsc->mdsc->mdsmap->m_session_autoclose); in mdsmap_show()
34 for (i = 0; i < fsc->mdsc->mdsmap->m_max_mds; i++) { in mdsmap_show()
36 &fsc->mdsc->mdsmap->m_info[i].addr; in mdsmap_show()
37 int state = fsc->mdsc->mdsmap->m_info[i].state; in mdsmap_show()
51 struct ceph_fs_client *fsc = s->private; in mdsc_show() local
52 struct ceph_mds_client *mdsc = fsc->mdsc; in mdsc_show()
129 struct ceph_fs_client *fsc = s->private; in caps_show() local
132 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); in caps_show()
144 struct ceph_fs_client *fsc = s->private; in dentry_lru_show() local
145 struct ceph_mds_client *mdsc = fsc->mdsc; in dentry_lru_show()
161 struct ceph_fs_client *fsc = s->private; in mds_sessions_show() local
162 struct ceph_mds_client *mdsc = fsc->mdsc; in mds_sessions_show()
163 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show()
164 struct ceph_options *opt = fsc->client->options; in mds_sessions_show()
207 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in CEPH_DEFINE_SHOW_FUNC() local
209 fsc->mount_options->congestion_kb = (int)val; in CEPH_DEFINE_SHOW_FUNC()
215 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_get() local
217 *val = (u64)fsc->mount_options->congestion_kb; in congestion_kb_get()
225 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument
228 debugfs_remove(fsc->debugfs_bdi); in ceph_fs_debugfs_cleanup()
229 debugfs_remove(fsc->debugfs_congestion_kb); in ceph_fs_debugfs_cleanup()
230 debugfs_remove(fsc->debugfs_mdsmap); in ceph_fs_debugfs_cleanup()
231 debugfs_remove(fsc->debugfs_mds_sessions); in ceph_fs_debugfs_cleanup()
232 debugfs_remove(fsc->debugfs_caps); in ceph_fs_debugfs_cleanup()
233 debugfs_remove(fsc->debugfs_mdsc); in ceph_fs_debugfs_cleanup()
234 debugfs_remove(fsc->debugfs_dentry_lru); in ceph_fs_debugfs_cleanup()
237 int ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
243 BUG_ON(!fsc->client->debugfs_dir); in ceph_fs_debugfs_init()
244 fsc->debugfs_congestion_kb = in ceph_fs_debugfs_init()
247 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
248 fsc, in ceph_fs_debugfs_init()
250 if (!fsc->debugfs_congestion_kb) in ceph_fs_debugfs_init()
254 dev_name(fsc->backing_dev_info.dev)); in ceph_fs_debugfs_init()
255 fsc->debugfs_bdi = in ceph_fs_debugfs_init()
257 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
259 if (!fsc->debugfs_bdi) in ceph_fs_debugfs_init()
262 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap", in ceph_fs_debugfs_init()
264 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
265 fsc, in ceph_fs_debugfs_init()
267 if (!fsc->debugfs_mdsmap) in ceph_fs_debugfs_init()
270 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions", in ceph_fs_debugfs_init()
272 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
273 fsc, in ceph_fs_debugfs_init()
275 if (!fsc->debugfs_mds_sessions) in ceph_fs_debugfs_init()
278 fsc->debugfs_mdsc = debugfs_create_file("mdsc", in ceph_fs_debugfs_init()
280 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
281 fsc, in ceph_fs_debugfs_init()
283 if (!fsc->debugfs_mdsc) in ceph_fs_debugfs_init()
286 fsc->debugfs_caps = debugfs_create_file("caps", in ceph_fs_debugfs_init()
288 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
289 fsc, in ceph_fs_debugfs_init()
291 if (!fsc->debugfs_caps) in ceph_fs_debugfs_init()
294 fsc->debugfs_dentry_lru = debugfs_create_file("dentry_lru", in ceph_fs_debugfs_init()
296 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
297 fsc, in ceph_fs_debugfs_init()
299 if (!fsc->debugfs_dentry_lru) in ceph_fs_debugfs_init()
305 ceph_fs_debugfs_cleanup(fsc); in ceph_fs_debugfs_init()
312 int ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
317 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument