Lines Matching refs:fsc
833 struct ceph_fs_client *fsc = ceph_sb_to_client(dentry->d_sb);
845 hash_for_each_possible_rcu(fsc->async_unlink_conflict, di,
962 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_FENCE_IO)
995 ceph_con_init(&s->s_con, s, &mds_con_ops, &mdsc->fsc->client->msgr);
1321 if (!dir || dir->i_sb != mdsc->fsc->sb) {
1530 struct ceph_options *opt = mdsc->fsc->client->options;
1531 struct ceph_mount_options *fsopt = mdsc->fsc->mount_options;
1640 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_FENCE_IO)
1889 struct ceph_fs_client *fsc = session->s_mdsc->fsc;
1890 struct super_block *sb = fsc->sb;
1894 ceph_iterate_session_caps(session, remove_session_caps_cb, fsc);
1896 wake_up_all(&fsc->mdsc->cap_flushing_wq);
2272 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc;
2380 if (queue_work(mdsc->fsc->cap_wq,
2416 if (queue_work(mdsc->fsc->cap_wq, &mdsc->cap_reclaim_work)) {
2444 struct ceph_mount_options *opt = req->r_mdsc->fsc->mount_options;
3244 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_FENCE_IO) {
3255 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) {
3260 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_MOUNTING) {
3271 if (!(mdsc->fsc->mount_options->flags &
3334 if (ceph_test_mount_opt(mdsc->fsc, CLEANRECOVER))
3734 in = ceph_get_inode(mdsc->fsc->sb, tvino, in);
3773 err = ceph_fill_trace(mdsc->fsc->sb, req);
4089 mdsc->fsc->blocklisted = true;
4593 if (mdsc->fsc->sb->s_root)
4594 shrink_dcache_parent(mdsc->fsc->sb->s_root);
4896 struct super_block *sb = mdsc->fsc->sb;
5045 struct ceph_fs_client *fsc = mdsc->fsc;
5047 if (!ceph_test_mount_opt(fsc, CLEANRECOVER))
5050 if (READ_ONCE(fsc->mount_state) != CEPH_MOUNT_MOUNTED)
5053 if (!READ_ONCE(fsc->blocklisted))
5057 ceph_force_reconnect(fsc->sb);
5175 int ceph_mdsc_init(struct ceph_fs_client *fsc)
5184 mdsc->fsc = fsc;
5227 ceph_adjust_caps_max_min(mdsc, fsc->mount_options);
5239 fsc->mdsc = mdsc;
5255 struct ceph_options *opts = mdsc->fsc->client->options;
5397 if (READ_ONCE(mdsc->fsc->mount_state) >= CEPH_MOUNT_SHUTDOWN)
5428 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN)
5438 struct ceph_options *opts = mdsc->fsc->client->options;
5546 void ceph_mdsc_destroy(struct ceph_fs_client *fsc)
5548 struct ceph_mds_client *mdsc = fsc->mdsc;
5561 fsc->mdsc = NULL;
5568 struct ceph_fs_client *fsc = mdsc->fsc;
5569 const char *mds_namespace = fsc->mount_options->mds_namespace;
5612 ceph_monc_got_map(&fsc->client->monc, CEPH_SUB_FSMAP, epoch);
5614 fsc->client->monc.fs_cluster_id = mount_fscid;
5615 ceph_monc_want_map(&fsc->client->monc, CEPH_SUB_MDSMAP,
5617 ceph_monc_renew_subs(&fsc->client->monc);
5626 ceph_umount_begin(mdsc->fsc->sb);
5650 if (ceph_check_fsid(mdsc->fsc->client, &fsid) < 0)
5665 newmap = ceph_mdsmap_decode(&p, end, ceph_msgr2(mdsc->fsc->client));
5680 mdsc->fsc->max_file_size = min((loff_t)mdsc->mdsmap->m_max_file_size,
5684 ceph_monc_got_map(&mdsc->fsc->client->monc, CEPH_SUB_MDSMAP,
5695 ceph_umount_begin(mdsc->fsc->sb);
5726 if (READ_ONCE(mdsc->fsc->mount_state) != CEPH_MOUNT_FENCE_IO)
5793 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
5810 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
5820 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
5832 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth;
5836 return ceph_monc_validate_auth(&mdsc->fsc->client->monc);
5844 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth;
5864 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth;
5884 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth;
5898 struct ceph_mon_client *monc = &s->s_mdsc->fsc->client->monc;