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()
270 struct ceph_fs_client *fsc = s->private; in caps_show() local
271 struct ceph_mds_client *mdsc = fsc->mdsc; in caps_show()
275 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); in caps_show()
318 struct ceph_fs_client *fsc = s->private; in mds_sessions_show() local
319 struct ceph_mds_client *mdsc = fsc->mdsc; in mds_sessions_show()
320 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show()
321 struct ceph_options *opt = fsc->client->options; in mds_sessions_show()
354 struct ceph_fs_client *fsc = s->private; in status_show() local
355 struct ceph_entity_inst *inst = &fsc->client->msgr.inst; in status_show()
356 struct ceph_entity_addr *client_addr = ceph_client_addr(fsc->client); in status_show()
360 seq_printf(s, "blocklisted: %s\n", str_true_false(fsc->blocklisted)); in status_show()
381 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_set() local
383 fsc->mount_options->congestion_kb = (int)val; in congestion_kb_set()
389 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_get() local
391 *val = (u64)fsc->mount_options->congestion_kb; in congestion_kb_get()
399 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument
401 doutc(fsc->client, "begin\n"); in ceph_fs_debugfs_cleanup()
402 debugfs_remove(fsc->debugfs_bdi); in ceph_fs_debugfs_cleanup()
403 debugfs_remove(fsc->debugfs_congestion_kb); in ceph_fs_debugfs_cleanup()
404 debugfs_remove(fsc->debugfs_mdsmap); in ceph_fs_debugfs_cleanup()
405 debugfs_remove(fsc->debugfs_mds_sessions); in ceph_fs_debugfs_cleanup()
406 debugfs_remove(fsc->debugfs_caps); in ceph_fs_debugfs_cleanup()
407 debugfs_remove(fsc->debugfs_status); in ceph_fs_debugfs_cleanup()
408 debugfs_remove(fsc->debugfs_mdsc); in ceph_fs_debugfs_cleanup()
409 debugfs_remove_recursive(fsc->debugfs_metrics_dir); in ceph_fs_debugfs_cleanup()
410 doutc(fsc->client, "done\n"); in ceph_fs_debugfs_cleanup()
413 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
417 doutc(fsc->client, "begin\n"); in ceph_fs_debugfs_init()
418 fsc->debugfs_congestion_kb = in ceph_fs_debugfs_init()
421 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
422 fsc, in ceph_fs_debugfs_init()
426 bdi_dev_name(fsc->sb->s_bdi)); in ceph_fs_debugfs_init()
427 fsc->debugfs_bdi = in ceph_fs_debugfs_init()
429 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
432 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap", in ceph_fs_debugfs_init()
434 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
435 fsc, in ceph_fs_debugfs_init()
438 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions", in ceph_fs_debugfs_init()
440 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
441 fsc, in ceph_fs_debugfs_init()
444 fsc->debugfs_mdsc = debugfs_create_file("mdsc", in ceph_fs_debugfs_init()
446 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
447 fsc, in ceph_fs_debugfs_init()
450 fsc->debugfs_caps = debugfs_create_file("caps", in ceph_fs_debugfs_init()
452 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
453 fsc, in ceph_fs_debugfs_init()
456 fsc->debugfs_status = debugfs_create_file("status", in ceph_fs_debugfs_init()
458 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
459 fsc, in ceph_fs_debugfs_init()
462 fsc->debugfs_metrics_dir = debugfs_create_dir("metrics", in ceph_fs_debugfs_init()
463 fsc->client->debugfs_dir); in ceph_fs_debugfs_init()
465 debugfs_create_file("file", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
467 debugfs_create_file("latency", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
469 debugfs_create_file("size", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
471 debugfs_create_file("caps", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
473 doutc(fsc->client, "done\n"); in ceph_fs_debugfs_init()
479 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
483 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument