Lines Matching refs:fsc
747 ceph_con_init(&s->s_con, s, &mds_con_ops, &mdsc->fsc->client->msgr);
1079 if (!dir || dir->i_sb != mdsc->fsc->sb) {
1290 struct ceph_options *opt = mdsc->fsc->client->options;
1291 struct ceph_mount_options *fsopt = mdsc->fsc->mount_options;
1640 struct ceph_fs_client *fsc = (struct ceph_fs_client *)arg;
1641 struct ceph_mds_client *mdsc = fsc->mdsc;
1655 if (READ_ONCE(fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) {
1746 struct ceph_fs_client *fsc = session->s_mdsc->fsc;
1747 struct super_block *sb = fsc->sb;
1751 ceph_iterate_session_caps(session, remove_session_caps_cb, fsc);
1753 wake_up_all(&fsc->mdsc->cap_flushing_wq);
2123 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc;
2231 if (queue_work(mdsc->fsc->cap_wq,
2267 if (queue_work(mdsc->fsc->cap_wq, &mdsc->cap_reclaim_work)) {
2295 struct ceph_mount_options *opt = req->r_mdsc->fsc->mount_options;
2832 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) {
2837 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_MOUNTING) {
2848 if (!(mdsc->fsc->mount_options->flags &
3263 err = ceph_fill_trace(mdsc->fsc->sb, req);
3523 mdsc->fsc->blocklisted = true;
4023 if (mdsc->fsc->sb->s_root)
4024 shrink_dcache_parent(mdsc->fsc->sb->s_root);
4272 struct super_block *sb = mdsc->fsc->sb;
4423 struct ceph_fs_client *fsc = mdsc->fsc;
4425 if (!ceph_test_mount_opt(fsc, CLEANRECOVER))
4428 if (READ_ONCE(fsc->mount_state) != CEPH_MOUNT_MOUNTED)
4431 if (!READ_ONCE(fsc->blocklisted))
4434 if (fsc->last_auto_reconnect &&
4435 time_before(jiffies, fsc->last_auto_reconnect + HZ * 60 * 30))
4439 fsc->last_auto_reconnect = jiffies;
4440 ceph_force_reconnect(fsc->sb);
4561 int ceph_mdsc_init(struct ceph_fs_client *fsc)
4570 mdsc->fsc = fsc;
4621 ceph_adjust_caps_max_min(mdsc, fsc->mount_options);
4633 fsc->mdsc = mdsc;
4649 struct ceph_options *opts = mdsc->fsc->client->options;
4770 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN)
4801 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN)
4811 struct ceph_options *opts = mdsc->fsc->client->options;
4919 void ceph_mdsc_destroy(struct ceph_fs_client *fsc)
4921 struct ceph_mds_client *mdsc = fsc->mdsc;
4934 fsc->mdsc = NULL;
4941 struct ceph_fs_client *fsc = mdsc->fsc;
4942 const char *mds_namespace = fsc->mount_options->mds_namespace;
4994 ceph_monc_got_map(&fsc->client->monc, CEPH_SUB_FSMAP, epoch);
4996 fsc->client->monc.fs_cluster_id = mount_fscid;
4997 ceph_monc_want_map(&fsc->client->monc, CEPH_SUB_MDSMAP,
4999 ceph_monc_renew_subs(&fsc->client->monc);
5030 if (ceph_check_fsid(mdsc->fsc->client, &fsid) < 0)
5060 mdsc->fsc->max_file_size = min((loff_t)mdsc->mdsmap->m_max_file_size,
5064 ceph_monc_got_map(&mdsc->fsc->client->monc, CEPH_SUB_MDSMAP,
5170 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
5198 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
5208 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
5217 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
5221 return ceph_monc_validate_auth(&mdsc->fsc->client->monc);