Lines Matching defs:fsc

28 	struct ceph_fs_client *fsc = s->private;
31 if (!fsc->mdsc || !fsc->mdsc->mdsmap)
33 mdsmap = fsc->mdsc->mdsmap;
54 struct ceph_fs_client *fsc = s->private;
55 struct ceph_mds_client *mdsc = fsc->mdsc;
151 struct ceph_fs_client *fsc = s->private;
152 struct ceph_client_metric *m = &fsc->mdsc->metric;
175 struct ceph_fs_client *fsc = s->private;
176 struct ceph_client_metric *cm = &fsc->mdsc->metric;
201 struct ceph_fs_client *fsc = s->private;
202 struct ceph_client_metric *cm = &fsc->mdsc->metric;
231 struct ceph_fs_client *fsc = s->private;
232 struct ceph_client_metric *m = &fsc->mdsc->metric;
270 struct ceph_fs_client *fsc = s->private;
271 struct ceph_mds_client *mdsc = fsc->mdsc;
275 ceph_reservation_status(fsc, &total, &avail, &used, &reserved, &min);
318 struct ceph_fs_client *fsc = s->private;
319 struct ceph_mds_client *mdsc = fsc->mdsc;
320 struct ceph_auth_client *ac = fsc->client->monc.auth;
321 struct ceph_options *opt = fsc->client->options;
354 struct ceph_fs_client *fsc = s->private;
355 struct ceph_entity_inst *inst = &fsc->client->msgr.inst;
356 struct ceph_entity_addr *client_addr = ceph_client_addr(fsc->client);
360 seq_printf(s, "blocklisted: %s\n", fsc->blocklisted ? "true" : "false");
381 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data;
383 fsc->mount_options->congestion_kb = (int)val;
389 struct ceph_fs_client *fsc = (struct ceph_fs_client *)data;
391 *val = (u64)fsc->mount_options->congestion_kb;
399 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc)
401 doutc(fsc->client, "begin\n");
402 debugfs_remove(fsc->debugfs_bdi);
403 debugfs_remove(fsc->debugfs_congestion_kb);
404 debugfs_remove(fsc->debugfs_mdsmap);
405 debugfs_remove(fsc->debugfs_mds_sessions);
406 debugfs_remove(fsc->debugfs_caps);
407 debugfs_remove(fsc->debugfs_status);
408 debugfs_remove(fsc->debugfs_mdsc);
409 debugfs_remove_recursive(fsc->debugfs_metrics_dir);
410 doutc(fsc->client, "done\n");
413 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
417 doutc(fsc->client, "begin\n");
418 fsc->debugfs_congestion_kb =
421 fsc->client->debugfs_dir,
422 fsc,
426 bdi_dev_name(fsc->sb->s_bdi));
427 fsc->debugfs_bdi =
429 fsc->client->debugfs_dir,
432 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap",
434 fsc->client->debugfs_dir,
435 fsc,
438 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions",
440 fsc->client->debugfs_dir,
441 fsc,
444 fsc->debugfs_mdsc = debugfs_create_file("mdsc",
446 fsc->client->debugfs_dir,
447 fsc,
450 fsc->debugfs_caps = debugfs_create_file("caps",
452 fsc->client->debugfs_dir,
453 fsc,
456 fsc->debugfs_status = debugfs_create_file("status",
458 fsc->client->debugfs_dir,
459 fsc,
462 fsc->debugfs_metrics_dir = debugfs_create_dir("metrics",
463 fsc->client->debugfs_dir);
465 debugfs_create_file("file", 0400, fsc->debugfs_metrics_dir, fsc,
467 debugfs_create_file("latency", 0400, fsc->debugfs_metrics_dir, fsc,
469 debugfs_create_file("size", 0400, fsc->debugfs_metrics_dir, fsc,
471 debugfs_create_file("caps", 0400, fsc->debugfs_metrics_dir, fsc,
473 doutc(fsc->client, "done\n");
479 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
483 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc)