Lines Matching refs:fsc

28 	struct ceph_fs_client *fsc = s->private;  in mdsmap_show()  local
31 if (!fsc->mdsc || !fsc->mdsc->mdsmap) in mdsmap_show()
33 mdsmap = fsc->mdsc->mdsmap; in mdsmap_show()
54 struct ceph_fs_client *fsc = s->private; in mdsc_show() local
55 struct ceph_mds_client *mdsc = fsc->mdsc; in mdsc_show()
151 struct ceph_fs_client *fsc = s->private; in metrics_file_show() local
152 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_file_show()
175 struct ceph_fs_client *fsc = s->private; in metrics_latency_show() local
176 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_latency_show()
201 struct ceph_fs_client *fsc = s->private; in metrics_size_show() local
202 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_size_show()
231 struct ceph_fs_client *fsc = s->private; in metrics_caps_show() local
232 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_caps_show()
264 struct ceph_fs_client *fsc = s->private; in caps_show() local
265 struct ceph_mds_client *mdsc = fsc->mdsc; in caps_show()
269 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); in caps_show()
312 struct ceph_fs_client *fsc = s->private; in mds_sessions_show() local
313 struct ceph_mds_client *mdsc = fsc->mdsc; in mds_sessions_show()
314 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show()
315 struct ceph_options *opt = fsc->client->options; in mds_sessions_show()
348 struct ceph_fs_client *fsc = s->private; in status_show() local
349 struct ceph_entity_inst *inst = &fsc->client->msgr.inst; in status_show()
350 struct ceph_entity_addr *client_addr = ceph_client_addr(fsc->client); in status_show()
354 seq_printf(s, "blocklisted: %s\n", fsc->blocklisted ? "true" : "false"); in status_show()
375 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_set() local
377 fsc->mount_options->congestion_kb = (int)val; in congestion_kb_set()
383 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_get() local
385 *val = (u64)fsc->mount_options->congestion_kb; in congestion_kb_get()
393 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument
396 debugfs_remove(fsc->debugfs_bdi); in ceph_fs_debugfs_cleanup()
397 debugfs_remove(fsc->debugfs_congestion_kb); in ceph_fs_debugfs_cleanup()
398 debugfs_remove(fsc->debugfs_mdsmap); in ceph_fs_debugfs_cleanup()
399 debugfs_remove(fsc->debugfs_mds_sessions); in ceph_fs_debugfs_cleanup()
400 debugfs_remove(fsc->debugfs_caps); in ceph_fs_debugfs_cleanup()
401 debugfs_remove(fsc->debugfs_status); in ceph_fs_debugfs_cleanup()
402 debugfs_remove(fsc->debugfs_mdsc); in ceph_fs_debugfs_cleanup()
403 debugfs_remove_recursive(fsc->debugfs_metrics_dir); in ceph_fs_debugfs_cleanup()
406 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
411 fsc->debugfs_congestion_kb = in ceph_fs_debugfs_init()
414 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
415 fsc, in ceph_fs_debugfs_init()
419 bdi_dev_name(fsc->sb->s_bdi)); in ceph_fs_debugfs_init()
420 fsc->debugfs_bdi = in ceph_fs_debugfs_init()
422 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
425 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap", in ceph_fs_debugfs_init()
427 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
428 fsc, in ceph_fs_debugfs_init()
431 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions", in ceph_fs_debugfs_init()
433 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
434 fsc, in ceph_fs_debugfs_init()
437 fsc->debugfs_mdsc = debugfs_create_file("mdsc", in ceph_fs_debugfs_init()
439 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
440 fsc, in ceph_fs_debugfs_init()
443 fsc->debugfs_caps = debugfs_create_file("caps", in ceph_fs_debugfs_init()
445 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
446 fsc, in ceph_fs_debugfs_init()
449 fsc->debugfs_status = debugfs_create_file("status", in ceph_fs_debugfs_init()
451 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
452 fsc, in ceph_fs_debugfs_init()
455 fsc->debugfs_metrics_dir = debugfs_create_dir("metrics", in ceph_fs_debugfs_init()
456 fsc->client->debugfs_dir); in ceph_fs_debugfs_init()
458 debugfs_create_file("file", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
460 debugfs_create_file("latency", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
462 debugfs_create_file("size", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
464 debugfs_create_file("caps", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
471 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
475 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument