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)
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);
412 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
417 fsc->debugfs_congestion_kb =
420 fsc->client->debugfs_dir,
421 fsc,
425 bdi_dev_name(fsc->sb->s_bdi));
426 fsc->debugfs_bdi =
428 fsc->client->debugfs_dir,
431 fsc->debugfs_mdsmap = debugfs_create_file("mdsmap",
433 fsc->client->debugfs_dir,
434 fsc,
437 fsc->debugfs_mds_sessions = debugfs_create_file("mds_sessions",
439 fsc->client->debugfs_dir,
440 fsc,
443 fsc->debugfs_mdsc = debugfs_create_file("mdsc",
445 fsc->client->debugfs_dir,
446 fsc,
449 fsc->debugfs_caps = debugfs_create_file("caps",
451 fsc->client->debugfs_dir,
452 fsc,
455 fsc->debugfs_status = debugfs_create_file("status",
457 fsc->client->debugfs_dir,
458 fsc,
461 fsc->debugfs_metrics_dir = debugfs_create_dir("metrics",
462 fsc->client->debugfs_dir);
464 debugfs_create_file("file", 0400, fsc->debugfs_metrics_dir, fsc,
466 debugfs_create_file("latency", 0400, fsc->debugfs_metrics_dir, fsc,
468 debugfs_create_file("size", 0400, fsc->debugfs_metrics_dir, fsc,
470 debugfs_create_file("caps", 0400, fsc->debugfs_metrics_dir, fsc,
477 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
481 void ceph_fs_debugfs_cleanup(struct ceph_fs_client *fsc)