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()
202 struct ceph_fs_client *fsc = s->private; in metrics_size_show() local
203 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_size_show()
232 struct ceph_fs_client *fsc = s->private; in metrics_caps_show() local
233 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_caps_show()
265 struct ceph_fs_client *fsc = s->private; in caps_show() local
266 struct ceph_mds_client *mdsc = fsc->mdsc; in caps_show()
270 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); in caps_show()
313 struct ceph_fs_client *fsc = s->private; in mds_sessions_show() local
314 struct ceph_mds_client *mdsc = fsc->mdsc; in mds_sessions_show()
315 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show()
316 struct ceph_options *opt = fsc->client->options; in mds_sessions_show()
349 struct ceph_fs_client *fsc = s->private; in status_show() local
350 struct ceph_entity_inst *inst = &fsc->client->msgr.inst; in status_show()
351 struct ceph_entity_addr *client_addr = ceph_client_addr(fsc->client); in status_show()
355 seq_printf(s, "blocklisted: %s\n", fsc->blocklisted ? "true" : "false"); in status_show()
376 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_set() local
378 fsc->mount_options->congestion_kb = (int)val; in congestion_kb_set()
384 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_get() local
386 *val = (u64)fsc->mount_options->congestion_kb; in congestion_kb_get()
394 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument
397 debugfs_remove(fsc->debugfs_bdi); in ceph_fs_debugfs_cleanup()
398 debugfs_remove(fsc->debugfs_congestion_kb); in ceph_fs_debugfs_cleanup()
399 debugfs_remove(fsc->debugfs_mdsmap); in ceph_fs_debugfs_cleanup()
400 debugfs_remove(fsc->debugfs_mds_sessions); in ceph_fs_debugfs_cleanup()
401 debugfs_remove(fsc->debugfs_caps); in ceph_fs_debugfs_cleanup()
402 debugfs_remove(fsc->debugfs_status); in ceph_fs_debugfs_cleanup()
403 debugfs_remove(fsc->debugfs_mdsc); in ceph_fs_debugfs_cleanup()
404 debugfs_remove_recursive(fsc->debugfs_metrics_dir); in ceph_fs_debugfs_cleanup()
407 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
412 fsc->debugfs_congestion_kb = in ceph_fs_debugfs_init()
415 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
416 fsc, in ceph_fs_debugfs_init()
420 bdi_dev_name(fsc->sb->s_bdi)); in ceph_fs_debugfs_init()
421 fsc->debugfs_bdi = in ceph_fs_debugfs_init()
423 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
426 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap", in ceph_fs_debugfs_init()
428 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
429 fsc, in ceph_fs_debugfs_init()
432 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions", 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_mdsc = debugfs_create_file("mdsc", 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_caps = debugfs_create_file("caps", 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_status = debugfs_create_file("status", 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_metrics_dir = debugfs_create_dir("metrics", in ceph_fs_debugfs_init()
457 fsc->client->debugfs_dir); in ceph_fs_debugfs_init()
459 debugfs_create_file("file", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
461 debugfs_create_file("latency", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
463 debugfs_create_file("size", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
465 debugfs_create_file("caps", 0400, fsc->debugfs_metrics_dir, fsc, in ceph_fs_debugfs_init()
472 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
476 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument