Lines Matching refs:fsc

680 	struct ceph_fs_client *fsc = ceph_sb_to_client(dentry->d_sb);  in ceph_wait_on_conflict_unlink()  local
692 hash_for_each_possible_rcu(fsc->async_unlink_conflict, di, in ceph_wait_on_conflict_unlink()
839 ceph_con_init(&s->s_con, s, &mds_con_ops, &mdsc->fsc->client->msgr); in register_session()
1162 if (!dir || dir->i_sb != mdsc->fsc->sb) { in __choose_mds()
1371 struct ceph_options *opt = mdsc->fsc->client->options; in create_session_open_msg()
1372 struct ceph_mount_options *fsopt = mdsc->fsc->mount_options; in create_session_open_msg()
1719 struct ceph_fs_client *fsc = session->s_mdsc->fsc; in remove_session_caps() local
1720 struct super_block *sb = fsc->sb; in remove_session_caps()
1724 ceph_iterate_session_caps(session, remove_session_caps_cb, fsc); in remove_session_caps()
1726 wake_up_all(&fsc->mdsc->cap_flushing_wq); in remove_session_caps()
2095 struct ceph_osd_client *osdc = &mdsc->fsc->client->osdc; in ceph_send_cap_releases()
2203 if (queue_work(mdsc->fsc->cap_wq, in ceph_flush_cap_releases()
2239 if (queue_work(mdsc->fsc->cap_wq, &mdsc->cap_reclaim_work)) { in ceph_queue_cap_reclaim_work()
2267 struct ceph_mount_options *opt = req->r_mdsc->fsc->mount_options; in ceph_alloc_readdir_reply_buffer()
2869 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) { in __do_request()
2874 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_MOUNTING) { in __do_request()
2885 if (!(mdsc->fsc->mount_options->flags & in __do_request()
2948 if (ceph_test_mount_opt(mdsc->fsc, CLEANRECOVER)) in __do_request()
3334 in = ceph_get_inode(mdsc->fsc->sb, tvino); in handle_reply()
3366 err = ceph_fill_trace(mdsc->fsc->sb, req); in handle_reply()
3683 mdsc->fsc->blocklisted = true; in handle_session()
4181 if (mdsc->fsc->sb->s_root) in send_mds_reconnect()
4182 shrink_dcache_parent(mdsc->fsc->sb->s_root); in send_mds_reconnect()
4484 struct super_block *sb = mdsc->fsc->sb; in handle_lease()
4628 struct ceph_fs_client *fsc = mdsc->fsc; in maybe_recover_session() local
4630 if (!ceph_test_mount_opt(fsc, CLEANRECOVER)) in maybe_recover_session()
4633 if (READ_ONCE(fsc->mount_state) != CEPH_MOUNT_MOUNTED) in maybe_recover_session()
4636 if (!READ_ONCE(fsc->blocklisted)) in maybe_recover_session()
4640 ceph_force_reconnect(fsc->sb); in maybe_recover_session()
4758 int ceph_mdsc_init(struct ceph_fs_client *fsc) in ceph_mdsc_init() argument
4767 mdsc->fsc = fsc; in ceph_mdsc_init()
4807 ceph_adjust_caps_max_min(mdsc, fsc->mount_options); in ceph_mdsc_init()
4819 fsc->mdsc = mdsc; in ceph_mdsc_init()
4835 struct ceph_options *opts = mdsc->fsc->client->options; in wait_requests()
4977 if (READ_ONCE(mdsc->fsc->mount_state) >= CEPH_MOUNT_SHUTDOWN) in ceph_mdsc_sync()
5008 if (READ_ONCE(mdsc->fsc->mount_state) == CEPH_MOUNT_SHUTDOWN) in done_closing_sessions()
5018 struct ceph_options *opts = mdsc->fsc->client->options; in ceph_mdsc_close_sessions()
5126 void ceph_mdsc_destroy(struct ceph_fs_client *fsc) in ceph_mdsc_destroy() argument
5128 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_mdsc_destroy()
5141 fsc->mdsc = NULL; in ceph_mdsc_destroy()
5148 struct ceph_fs_client *fsc = mdsc->fsc; in ceph_mdsc_handle_fsmap() local
5149 const char *mds_namespace = fsc->mount_options->mds_namespace; in ceph_mdsc_handle_fsmap()
5192 ceph_monc_got_map(&fsc->client->monc, CEPH_SUB_FSMAP, epoch); in ceph_mdsc_handle_fsmap()
5194 fsc->client->monc.fs_cluster_id = mount_fscid; in ceph_mdsc_handle_fsmap()
5195 ceph_monc_want_map(&fsc->client->monc, CEPH_SUB_MDSMAP, in ceph_mdsc_handle_fsmap()
5197 ceph_monc_renew_subs(&fsc->client->monc); in ceph_mdsc_handle_fsmap()
5206 ceph_umount_begin(mdsc->fsc->sb); in ceph_mdsc_handle_fsmap()
5229 if (ceph_check_fsid(mdsc->fsc->client, &fsid) < 0) in ceph_mdsc_handle_mdsmap()
5244 newmap = ceph_mdsmap_decode(&p, end, ceph_msgr2(mdsc->fsc->client)); in ceph_mdsc_handle_mdsmap()
5259 mdsc->fsc->max_file_size = min((loff_t)mdsc->mdsmap->m_max_file_size, in ceph_mdsc_handle_mdsmap()
5263 ceph_monc_got_map(&mdsc->fsc->client->monc, CEPH_SUB_MDSMAP, in ceph_mdsc_handle_mdsmap()
5274 ceph_umount_begin(mdsc->fsc->sb); in ceph_mdsc_handle_mdsmap()
5370 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in mds_get_authorizer()
5387 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in mds_add_authorizer_challenge()
5397 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in mds_verify_authorizer_reply()
5409 struct ceph_auth_client *ac = mdsc->fsc->client->monc.auth; in mds_invalidate_authorizer()
5413 return ceph_monc_validate_auth(&mdsc->fsc->client->monc); in mds_invalidate_authorizer()
5421 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth; in mds_get_auth_request()
5441 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth; in mds_handle_auth_reply_more()
5461 struct ceph_auth_client *ac = s->s_mdsc->fsc->client->monc.auth; in mds_handle_auth_done()
5475 struct ceph_mon_client *monc = &s->s_mdsc->fsc->client->monc; in mds_handle_auth_bad_method()