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 metric_show() local
152 struct ceph_mds_client *mdsc = fsc->mdsc; in metric_show()
254 struct ceph_fs_client *fsc = s->private; in caps_show() local
255 struct ceph_mds_client *mdsc = fsc->mdsc; in caps_show()
259 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min); in caps_show()
302 struct ceph_fs_client *fsc = s->private; in mds_sessions_show() local
303 struct ceph_mds_client *mdsc = fsc->mdsc; in mds_sessions_show()
304 struct ceph_auth_client *ac = fsc->client->monc.auth; in mds_sessions_show()
305 struct ceph_options *opt = fsc->client->options; in mds_sessions_show()
338 struct ceph_fs_client *fsc = s->private; in status_show() local
339 struct ceph_entity_inst *inst = &fsc->client->msgr.inst; in status_show()
340 struct ceph_entity_addr *client_addr = ceph_client_addr(fsc->client); in status_show()
344 seq_printf(s, "blocklisted: %s\n", fsc->blocklisted ? "true" : "false"); in status_show()
362 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_set() local
364 fsc->mount_options->congestion_kb = (int)val; in congestion_kb_set()
370 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data; in congestion_kb_get() local
372 *val = (u64)fsc->mount_options->congestion_kb; in congestion_kb_get()
380 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument
383 debugfs_remove(fsc->debugfs_bdi); in ceph_fs_debugfs_cleanup()
384 debugfs_remove(fsc->debugfs_congestion_kb); in ceph_fs_debugfs_cleanup()
385 debugfs_remove(fsc->debugfs_mdsmap); in ceph_fs_debugfs_cleanup()
386 debugfs_remove(fsc->debugfs_mds_sessions); in ceph_fs_debugfs_cleanup()
387 debugfs_remove(fsc->debugfs_caps); in ceph_fs_debugfs_cleanup()
388 debugfs_remove(fsc->debugfs_metric); in ceph_fs_debugfs_cleanup()
389 debugfs_remove(fsc->debugfs_mdsc); in ceph_fs_debugfs_cleanup()
392 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
397 fsc->debugfs_congestion_kb = in ceph_fs_debugfs_init()
400 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
401 fsc, in ceph_fs_debugfs_init()
405 bdi_dev_name(fsc->sb->s_bdi)); in ceph_fs_debugfs_init()
406 fsc->debugfs_bdi = in ceph_fs_debugfs_init()
408 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
411 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap", in ceph_fs_debugfs_init()
413 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
414 fsc, in ceph_fs_debugfs_init()
417 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions", in ceph_fs_debugfs_init()
419 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
420 fsc, in ceph_fs_debugfs_init()
423 fsc->debugfs_mdsc = debugfs_create_file("mdsc", in ceph_fs_debugfs_init()
425 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
426 fsc, in ceph_fs_debugfs_init()
429 fsc->debugfs_metric = debugfs_create_file("metrics", in ceph_fs_debugfs_init()
431 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
432 fsc, in ceph_fs_debugfs_init()
435 fsc->debugfs_caps = debugfs_create_file("caps", in ceph_fs_debugfs_init()
437 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
438 fsc, in ceph_fs_debugfs_init()
441 fsc->debugfs_status = debugfs_create_file("status", in ceph_fs_debugfs_init()
443 fsc->client->debugfs_dir, in ceph_fs_debugfs_init()
444 fsc, in ceph_fs_debugfs_init()
451 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc) in ceph_fs_debugfs_init() argument
455 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc) in ceph_fs_debugfs_cleanup() argument