Home
last modified time | relevance | path

Searched refs:mdsc (Results 1 – 22 of 22) sorted by relevance

/linux/fs/ceph/
H A Dsnap.c66 void ceph_get_snap_realm(struct ceph_mds_client *mdsc, in ceph_get_snap_realm() argument
69 lockdep_assert_held(&mdsc->snap_rwsem); in ceph_get_snap_realm()
80 spin_lock(&mdsc->snap_empty_lock); in ceph_get_snap_realm()
83 spin_unlock(&mdsc->snap_empty_lock); in ceph_get_snap_realm()
114 struct ceph_mds_client *mdsc, in ceph_create_snap_realm() argument
119 lockdep_assert_held_write(&mdsc->snap_rwsem); in ceph_create_snap_realm()
138 __insert_snap_realm(&mdsc->snap_realms, realm); in ceph_create_snap_realm()
139 mdsc->num_snap_realms++; in ceph_create_snap_realm()
141 doutc(mdsc->fsc->client, "%llx %p\n", realm->ino, realm); in ceph_create_snap_realm()
150 static struct ceph_snap_realm *__lookup_snap_realm(struct ceph_mds_client *mdsc, in __lookup_snap_realm() argument
173 ceph_lookup_snap_realm(struct ceph_mds_client * mdsc,u64 ino) ceph_lookup_snap_realm() argument
189 __destroy_snap_realm(struct ceph_mds_client * mdsc,struct ceph_snap_realm * realm) __destroy_snap_realm() argument
214 __put_snap_realm(struct ceph_mds_client * mdsc,struct ceph_snap_realm * realm) __put_snap_realm() argument
230 ceph_put_snap_realm(struct ceph_mds_client * mdsc,struct ceph_snap_realm * realm) ceph_put_snap_realm() argument
253 __cleanup_empty_realms(struct ceph_mds_client * mdsc) __cleanup_empty_realms() argument
271 ceph_cleanup_global_and_empty_realms(struct ceph_mds_client * mdsc) ceph_cleanup_global_and_empty_realms() argument
291 adjust_snap_realm_parent(struct ceph_mds_client * mdsc,struct ceph_snap_realm * realm,u64 parentino) adjust_snap_realm_parent() argument
335 build_snap_context(struct ceph_mds_client * mdsc,struct ceph_snap_realm * realm,struct list_head * realm_queue,struct list_head * dirty_realms) build_snap_context() argument
433 rebuild_snap_realms(struct ceph_mds_client * mdsc,struct ceph_snap_realm * realm,struct list_head * dirty_realms) rebuild_snap_realms() argument
666 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); __ceph_finish_cap_snap() local
722 queue_realm_cap_snaps(struct ceph_mds_client * mdsc,struct ceph_snap_realm * realm) queue_realm_cap_snaps() argument
779 ceph_update_snap_trace(struct ceph_mds_client * mdsc,void * p,void * e,bool deletion,struct ceph_snap_realm ** realm_ret) ceph_update_snap_trace() argument
942 flush_snaps(struct ceph_mds_client * mdsc) flush_snaps() argument
980 struct ceph_mds_client *mdsc = ceph_inode_to_fs_client(inode)->mdsc; ceph_change_snap_realm() local
1016 ceph_handle_snap(struct ceph_mds_client * mdsc,struct ceph_mds_session * session,struct ceph_msg * msg) ceph_handle_snap() argument
1188 ceph_get_snapid_map(struct ceph_mds_client * mdsc,u64 snap) ceph_get_snapid_map() argument
1268 ceph_put_snapid_map(struct ceph_mds_client * mdsc,struct ceph_snapid_map * sm) ceph_put_snapid_map() argument
1287 ceph_trim_snapid_map(struct ceph_mds_client * mdsc) ceph_trim_snapid_map() argument
1317 ceph_cleanup_snapid_map(struct ceph_mds_client * mdsc) ceph_cleanup_snapid_map() argument
[all...]
H A Dmds_client.c67 static void __wake_requests(struct ceph_mds_client *mdsc,
75 static void ceph_metric_bind_session(struct ceph_mds_client *mdsc, in ceph_metric_bind_session()
80 if (!mdsc || !session || disable_send_metrics) in ceph_metric_bind_session()
83 old = mdsc->metric.session; in ceph_metric_bind_session()
84 mdsc->metric.session = ceph_get_mds_session(session); in ceph_metric_bind_session()
88 metric_schedule_delayed(&mdsc->metric); in ceph_metric_bind_session()
147 struct ceph_mds_client *mdsc) in parse_reply_info_in()
439 struct ceph_mds_client *mdsc) in parse_reply_info_trace()
444 err = parse_reply_info_in(p, end, &info->diri, features, mdsc); in parse_reply_info_trace()
465 mdsc); in parse_reply_info_readdir()
74 ceph_metric_bind_session(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) ceph_metric_bind_session() argument
120 parse_reply_info_in(void ** p,void * end,struct ceph_mds_reply_info_in * info,u64 features,struct ceph_mds_client * mdsc) parse_reply_info_in() argument
410 parse_reply_info_trace(void ** p,void * end,struct ceph_mds_reply_info_parsed * info,u64 features,struct ceph_mds_client * mdsc) parse_reply_info_trace() argument
458 parse_reply_info_readdir(void ** p,void * end,struct ceph_mds_request * req,u64 features,struct ceph_mds_client * mdsc) parse_reply_info_readdir() argument
1031 __ceph_lookup_mds_session(struct ceph_mds_client * mdsc,int mds) __ceph_lookup_mds_session() argument
1039 __have_session(struct ceph_mds_client * mdsc,int mds) __have_session() argument
1047 __verify_registered_session(struct ceph_mds_client * mdsc,struct ceph_mds_session * s) __verify_registered_session() argument
1060 register_session(struct ceph_mds_client * mdsc,int mds) register_session() argument
1135 __unregister_session(struct ceph_mds_client * mdsc,struct ceph_mds_session * s) __unregister_session() argument
1159 ceph_mdsc_iterate_sessions(struct ceph_mds_client * mdsc,void (* cb)(struct ceph_mds_session *),bool check_state) ceph_mdsc_iterate_sessions() argument
1262 __register_request(struct ceph_mds_client * mdsc,struct ceph_mds_request * req,struct inode * dir) __register_request() argument
1303 __unregister_request(struct ceph_mds_client * mdsc,struct ceph_mds_request * req) __unregister_request() argument
1381 __choose_mds(struct ceph_mds_client * mdsc,struct ceph_mds_request * req,bool * random) __choose_mds() argument
1637 create_session_full_msg(struct ceph_mds_client * mdsc,int op,u64 seq) create_session_full_msg() argument
1760 __open_session(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) __open_session() argument
1792 __open_export_target_session(struct ceph_mds_client * mdsc,int target) __open_export_target_session() argument
1814 ceph_mdsc_open_export_target_session(struct ceph_mds_client * mdsc,int target) ceph_mdsc_open_export_target_session() argument
1828 __open_export_target_sessions(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) __open_export_target_sessions() argument
1868 dispose_cap_releases(struct ceph_mds_client * mdsc,struct list_head * dispose) dispose_cap_releases() argument
1880 cleanup_session_requests(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) cleanup_session_requests() argument
2116 send_renew_caps(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) send_renew_caps() argument
2147 send_flushmsg_ack(struct ceph_mds_client * mdsc,struct ceph_mds_session * session,u64 seq) send_flushmsg_ack() argument
2168 renewed_caps(struct ceph_mds_client * mdsc,struct ceph_mds_session * session,int is_renew) renewed_caps() argument
2221 __close_session(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) __close_session() argument
2265 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); trim_caps_cb() local
2345 ceph_trim_caps(struct ceph_mds_client * mdsc,struct ceph_mds_session * session,int max_caps) ceph_trim_caps() argument
2367 check_caps_flush(struct ceph_mds_client * mdsc,u64 want_flush_tid) check_caps_flush() argument
2413 dump_cap_flushes(struct ceph_mds_client * mdsc,u64 want_tid) dump_cap_flushes() argument
2472 wait_caps_flush(struct ceph_mds_client * mdsc,u64 want_flush_tid) wait_caps_flush() argument
2502 ceph_send_cap_releases(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) ceph_send_cap_releases() argument
2608 ceph_flush_session_cap_releases(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) ceph_flush_session_cap_releases() argument
2640 struct ceph_mds_client *mdsc = ceph_cap_reclaim_work() local
2647 ceph_queue_cap_reclaim_work(struct ceph_mds_client * mdsc) ceph_queue_cap_reclaim_work() argument
2660 ceph_reclaim_caps_nr(struct ceph_mds_client * mdsc,int nr) ceph_reclaim_caps_nr() argument
2672 ceph_queue_cap_unlink_work(struct ceph_mds_client * mdsc) ceph_queue_cap_unlink_work() argument
2687 struct ceph_mds_client *mdsc = ceph_cap_unlink_work() local
2768 ceph_mdsc_create_request(struct ceph_mds_client * mdsc,int op,int mode) ceph_mdsc_create_request() argument
2804 __get_oldest_req(struct ceph_mds_client * mdsc) __get_oldest_req() argument
2812 __get_oldest_tid(struct ceph_mds_client * mdsc) __get_oldest_tid() argument
2899 ceph_mdsc_build_path(struct ceph_mds_client * mdsc,struct dentry * dentry,struct ceph_path_info * path_info,int for_wire) ceph_mdsc_build_path() argument
3032 build_dentry_path(struct ceph_mds_client * mdsc,struct dentry * dentry,struct inode * dir,struct ceph_path_info * path_info,bool parent_locked) build_dentry_path() argument
3063 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); build_inode_path() local
3091 set_request_path_attr(struct ceph_mds_client * mdsc,struct inode * rinode,struct dentry * rdentry,struct inode * rdiri,const char * rpath,u64 rino,struct ceph_path_info * path_info,bool parent_locked) set_request_path_attr() argument
3191 struct ceph_mds_client *mdsc = session->s_mdsc; create_request_message() local
3481 complete_request(struct ceph_mds_client * mdsc,struct ceph_mds_request * req) complete_request() argument
3501 struct ceph_mds_client *mdsc = session->s_mdsc; __prepare_send_request() local
3633 __do_request(struct ceph_mds_client * mdsc,struct ceph_mds_request * req) __do_request() argument
3848 __wake_requests(struct ceph_mds_client * mdsc,struct list_head * head) __wake_requests() argument
3872 kick_requests(struct ceph_mds_client * mdsc,int mds) kick_requests() argument
3896 ceph_mdsc_submit_request(struct ceph_mds_client * mdsc,struct inode * dir,struct ceph_mds_request * req) ceph_mdsc_submit_request() argument
3960 ceph_mdsc_wait_request(struct ceph_mds_client * mdsc,struct ceph_mds_request * req,ceph_mds_request_wait_callback_t wait_func) ceph_mdsc_wait_request() argument
4016 ceph_mdsc_do_request(struct ceph_mds_client * mdsc,struct inode * dir,struct ceph_mds_request * req) ceph_mdsc_do_request() argument
4064 struct ceph_mds_client *mdsc = session->s_mdsc; handle_reply() local
4291 handle_forward(struct ceph_mds_client * mdsc,struct ceph_mds_session * session,struct ceph_msg * msg) handle_forward() argument
4394 struct ceph_mds_client *mdsc = session->s_mdsc; handle_session() local
4730 replay_unsafe_requests(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) replay_unsafe_requests() argument
4880 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); reconnect_caps_cb() local
5074 encode_snap_realms(struct ceph_mds_client * mdsc,struct ceph_reconnect_state * recon_state) encode_snap_realms() argument
5145 send_mds_reconnect(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) send_mds_reconnect() argument
5385 ceph_mdsc_wait_for_reset(struct ceph_mds_client * mdsc) ceph_mdsc_wait_for_reset() argument
5443 ceph_mdsc_reset_complete(struct ceph_mds_client * mdsc,int ret) ceph_mdsc_reset_complete() argument
5474 struct ceph_mds_client *mdsc = ceph_mdsc_reset_workfn() local
5787 ceph_mdsc_schedule_reset(struct ceph_mds_client * mdsc,const char * reason) ceph_mdsc_schedule_reset() argument
5843 check_new_map(struct ceph_mds_client * mdsc,struct ceph_mdsmap * newmap,struct ceph_mdsmap * oldmap) check_new_map() argument
6033 handle_lease(struct ceph_mds_client * mdsc,struct ceph_mds_session * session,struct ceph_msg * msg) handle_lease() argument
6185 maybe_recover_session(struct ceph_mds_client * mdsc) maybe_recover_session() argument
6253 schedule_delayed(struct ceph_mds_client * mdsc,unsigned long delay) schedule_delayed() argument
6266 struct ceph_mds_client *mdsc = delayed_work() local
6327 struct ceph_mds_client *mdsc; ceph_mdsc_init() local
6419 wait_requests(struct ceph_mds_client * mdsc) wait_requests() argument
6470 ceph_mds_auth_match(struct ceph_mds_client * mdsc,struct ceph_mds_cap_auth * auth,const struct cred * cred,char * tpath) ceph_mds_auth_match() argument
6590 ceph_mds_check_access(struct ceph_mds_client * mdsc,char * tpath,int mask) ceph_mds_check_access() argument
6654 ceph_mdsc_pre_umount(struct ceph_mds_client * mdsc) ceph_mdsc_pre_umount() argument
6677 flush_mdlog_and_wait_mdsc_unsafe_requests(struct ceph_mds_client * mdsc,u64 want_tid) flush_mdlog_and_wait_mdsc_unsafe_requests() argument
6742 ceph_mdsc_sync(struct ceph_mds_client * mdsc) ceph_mdsc_sync() argument
6776 done_closing_sessions(struct ceph_mds_client * mdsc,int skipped) done_closing_sessions() argument
6786 ceph_mdsc_close_sessions(struct ceph_mds_client * mdsc) ceph_mdsc_close_sessions() argument
6844 ceph_mdsc_force_umount(struct ceph_mds_client * mdsc) ceph_mdsc_force_umount() argument
6878 ceph_mdsc_stop(struct ceph_mds_client * mdsc) ceph_mdsc_stop() argument
6912 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_mdsc_destroy() local
6949 ceph_mdsc_handle_fsmap(struct ceph_mds_client * mdsc,struct ceph_msg * msg) ceph_mdsc_handle_fsmap() argument
7023 ceph_mdsc_handle_mdsmap(struct ceph_mds_client * mdsc,struct ceph_msg * msg) ceph_mdsc_handle_mdsmap() argument
7109 struct ceph_mds_client *mdsc = s->s_mdsc; mds_peer_reset() local
7201 struct ceph_mds_client *mdsc = s->s_mdsc; mds_dispatch() local
7263 struct ceph_mds_client *mdsc = s->s_mdsc; mds_get_authorizer() local
7280 struct ceph_mds_client *mdsc = s->s_mdsc; mds_add_authorizer_challenge() local
7290 struct ceph_mds_client *mdsc = s->s_mdsc; mds_verify_authorizer_reply() local
7302 struct ceph_mds_client *mdsc = s->s_mdsc; mds_invalidate_authorizer() local
[all...]
H A Dquota.c15 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_adjust_quota_realms_count() local
17 atomic64_inc(&mdsc->quotarealms_count); in ceph_adjust_quota_realms_count()
19 atomic64_dec(&mdsc->quotarealms_count); in ceph_adjust_quota_realms_count()
25 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(sb); in ceph_has_realms_with_quotas() local
28 if (atomic64_read(&mdsc->quotarealms_count) > 0) in ceph_has_realms_with_quotas()
40 void ceph_handle_quota(struct ceph_mds_client *mdsc, in ceph_handle_quota() argument
44 struct super_block *sb = mdsc->fsc->sb; in ceph_handle_quota()
46 struct ceph_client *cl = mdsc->fsc->client; in ceph_handle_quota()
51 if (!ceph_inc_mds_stopping_blocker(mdsc, session)) in ceph_handle_quota()
81 ceph_dec_mds_stopping_blocker(mdsc); in ceph_handle_quota()
85 find_quotarealm_inode(struct ceph_mds_client * mdsc,u64 ino) find_quotarealm_inode() argument
130 lookup_quotarealm_inode(struct ceph_mds_client * mdsc,struct super_block * sb,struct ceph_snap_realm * realm) lookup_quotarealm_inode() argument
179 ceph_cleanup_quotarealms_inodes(struct ceph_mds_client * mdsc) ceph_cleanup_quotarealms_inodes() argument
214 get_quota_realm(struct ceph_mds_client * mdsc,struct inode * inode,enum quota_get_realm which_quota,struct ceph_snap_realm ** realmp,bool retry) get_quota_realm() argument
288 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(old->i_sb); ceph_quota_is_same_realm() local
336 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); check_quota_exceeded() local
506 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_quota_update_statfs() local
[all...]
H A Dcaps.c49 static u64 __get_oldest_flush_tid(struct ceph_mds_client *mdsc);
50 static void __kick_flushing_caps(struct ceph_mds_client *mdsc,
131 void ceph_caps_init(struct ceph_mds_client *mdsc) in ceph_caps_init() argument
133 INIT_LIST_HEAD(&mdsc->caps_list); in ceph_caps_init()
134 spin_lock_init(&mdsc->caps_list_lock); in ceph_caps_init()
137 void ceph_caps_finalize(struct ceph_mds_client *mdsc) in ceph_caps_finalize() argument
141 spin_lock(&mdsc->caps_list_lock); in ceph_caps_finalize()
142 while (!list_empty(&mdsc->caps_list)) { in ceph_caps_finalize()
143 cap = list_first_entry(&mdsc->caps_list, in ceph_caps_finalize()
148 mdsc in ceph_caps_finalize()
156 ceph_adjust_caps_max_min(struct ceph_mds_client * mdsc,struct ceph_mount_options * fsopt) ceph_adjust_caps_max_min() argument
170 __ceph_unreserve_caps(struct ceph_mds_client * mdsc,int nr_caps) __ceph_unreserve_caps() argument
204 ceph_reserve_caps(struct ceph_mds_client * mdsc,struct ceph_cap_reservation * ctx,int need) ceph_reserve_caps() argument
310 ceph_unreserve_caps(struct ceph_mds_client * mdsc,struct ceph_cap_reservation * ctx) ceph_unreserve_caps() argument
332 ceph_get_cap(struct ceph_mds_client * mdsc,struct ceph_cap_reservation * ctx) ceph_get_cap() argument
388 ceph_put_cap(struct ceph_mds_client * mdsc,struct ceph_cap * cap) ceph_put_cap() argument
419 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_reservation_status() local
498 __cap_set_timeouts(struct ceph_mds_client * mdsc,struct ceph_inode_info * ci) __cap_set_timeouts() argument
518 __cap_delay_requeue(struct ceph_mds_client * mdsc,struct ceph_inode_info * ci) __cap_delay_requeue() argument
545 __cap_delay_requeue_front(struct ceph_mds_client * mdsc,struct ceph_inode_info * ci) __cap_delay_requeue_front() argument
564 __cap_delay_cancel(struct ceph_mds_client * mdsc,struct ceph_inode_info * ci) __cap_delay_cancel() argument
657 struct ceph_mds_client *mdsc = ceph_inode_to_fs_client(inode)->mdsc; ceph_add_cap() local
1156 struct ceph_mds_client *mdsc; __ceph_remove_cap() local
1230 ceph_remove_cap(struct ceph_mds_client * mdsc,struct ceph_cap * cap,struct ceph_inode_info * ci,bool queue_release) ceph_remove_cap() argument
1279 struct ceph_mds_client *mdsc = arg->session->s_mdsc; encode_cap_msg() local
1399 struct ceph_mds_client *mdsc = ceph_inode_to_fs_client(inode)->mdsc; __ceph_remove_caps() local
1657 struct ceph_mds_client *mdsc = session->s_mdsc; __ceph_flush_snaps() local
1756 struct ceph_mds_client *mdsc = ceph_inode_to_fs_client(inode)->mdsc; ceph_flush_snaps() local
1821 struct ceph_mds_client *mdsc = __ceph_mark_dirty_caps() local
1894 __get_oldest_flush_tid(struct ceph_mds_client * mdsc) __get_oldest_flush_tid() argument
1909 __detach_cap_flush_from_mdsc(struct ceph_mds_client * mdsc,struct ceph_cap_flush * cf) __detach_cap_flush_from_mdsc() argument
1949 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; __mark_caps_flushing() local
2050 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); ceph_check_caps() local
2329 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; try_flush_caps() local
2407 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; flush_mdlog_and_wait_inode_unsafe_requests() local
2595 struct ceph_mds_client *mdsc = ceph_write_inode() local
2606 __kick_flushing_caps(struct ceph_mds_client * mdsc,struct ceph_mds_session * session,struct ceph_inode_info * ci,u64 oldest_flush_tid) __kick_flushing_caps() argument
2696 ceph_early_kick_flushing_caps(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) ceph_early_kick_flushing_caps() argument
2748 ceph_kick_flushing_caps(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) ceph_kick_flushing_caps() argument
2787 struct ceph_mds_client *mdsc = session->s_mdsc; ceph_kick_flushing_inode_caps() local
2870 struct ceph_mds_client *mdsc = ceph_inode_to_fs_client(inode)->mdsc; try_get_cap_refs() local
3119 struct ceph_mds_client *mdsc = fsc->mdsc; __ceph_get_caps() local
3900 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; handle_cap_flush_ack() local
4017 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; __ceph_remove_capsnap() local
4063 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; handle_cap_flushsnap_ack() local
4158 struct ceph_mds_client *mdsc = ceph_inode_to_fs_client(inode)->mdsc; handle_cap_export() local
4288 handle_cap_import(struct ceph_mds_client * mdsc,struct inode * inode,struct ceph_mds_caps * im,struct ceph_mds_cap_peer * ph,struct ceph_mds_session * session,struct ceph_cap ** target_cap,int * old_issued) handle_cap_import() argument
4420 struct ceph_mds_client *mdsc = session->s_mdsc; ceph_handle_caps() local
4701 ceph_check_delayed_caps(struct ceph_mds_client * mdsc) ceph_check_delayed_caps() argument
4756 struct ceph_mds_client *mdsc = s->s_mdsc; flush_dirty_session_caps() local
4779 ceph_flush_dirty_caps(struct ceph_mds_client * mdsc) ceph_flush_dirty_caps() argument
4789 struct ceph_mds_client *mdsc = s->s_mdsc; flush_cap_releases() local
4801 ceph_flush_cap_releases(struct ceph_mds_client * mdsc) ceph_flush_cap_releases() argument
4807 __ceph_touch_fmode(struct ceph_inode_info * ci,struct ceph_mds_client * mdsc,int fmode) __ceph_touch_fmode() argument
4823 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(ci->netfs.inode.i_sb); ceph_get_fmode() local
4857 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(ci->netfs.inode.i_sb); ceph_put_fmode() local
4902 struct ceph_mds_client *mdsc = ceph_drop_caps_for_unlink() local
5074 remove_capsnaps(struct ceph_mds_client * mdsc,struct inode * inode) remove_capsnaps() argument
5102 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_purge_inode_cap() local
[all...]
H A Ddebugfs.c64 if (!fsc->mdsc || !fsc->mdsc->mdsmap) in mdsmap_show()
66 mdsmap = fsc->mdsc->mdsmap; in mdsmap_show()
88 struct ceph_mds_client *mdsc = fsc->mdsc; in mdsc_show() local
93 mutex_lock(&mdsc->mutex); in mdsc_show()
94 for (rp = rb_first(&mdsc->request_tree); rp; rp = rb_next(rp)) { in mdsc_show()
116 path = ceph_mdsc_build_path(mdsc, req->r_dentry, &path_info, 0); in mdsc_show()
135 path = ceph_mdsc_build_path(mdsc, req->r_old_dentry, &path_info, 0); in mdsc_show()
156 mutex_unlock(&mdsc->mutex); in mdsc_show()
183 struct ceph_client_metric *m = &fsc->mdsc->metric; in metrics_file_show()
207 struct ceph_client_metric *cm = &fsc->mdsc->metric; in metrics_latency_show()
[all …]
H A Dioctl.c38 static long __validate_layout(struct ceph_mds_client *mdsc, in __validate_layout() argument
51 mutex_lock(&mdsc->mutex); in __validate_layout()
53 for (i = 0; i < mdsc->mdsmap->m_num_data_pg_pools; i++) in __validate_layout()
54 if (mdsc->mdsmap->m_data_pg_pools[i] == l->data_pool) { in __validate_layout()
58 mutex_unlock(&mdsc->mutex); in __validate_layout()
68 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; in ceph_ioctl_set_layout() local
107 err = __validate_layout(mdsc, &nl); in ceph_ioctl_set_layout()
111 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_SETLAYOUT, in ceph_ioctl_set_layout()
129 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_ioctl_set_layout()
146 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; in ceph_ioctl_set_layout_policy() local
[all …]
H A Ddir.c42 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dentry->d_sb); in ceph_d_init() local
54 atomic64_inc(&mdsc->metric.total_dentries); in ceph_d_init()
323 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_readdir() local
366 __ceph_touch_fmode(ci, mdsc, CEPH_FILE_MODE_WR); in ceph_readdir()
409 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS); in ceph_readdir()
456 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_readdir()
814 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb); in ceph_lookup()
855 __ceph_touch_fmode(ci, mdsc, CEPH_FILE_MODE_RD); in ceph_lookup()
869 req = ceph_mdsc_create_request(mdsc, o in ceph_lookup()
810 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb); ceph_lookup() local
927 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb); ceph_mknod() local
1038 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb); ceph_symlink() local
1112 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb); ceph_mkdir() local
1203 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb); ceph_link() local
1256 ceph_async_unlink_cb(struct ceph_mds_client * mdsc,struct ceph_mds_request * req) ceph_async_unlink_cb() argument
1352 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_unlink() local
1485 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(old_dir->i_sb); ceph_rename() local
1563 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(dn->d_sb)->mdsc; __ceph_dentry_lease_touch() local
1579 __dentry_dir_lease_touch(struct ceph_mds_client * mdsc,struct ceph_dentry_info * di) __dentry_dir_lease_touch() argument
1597 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(dn->d_sb)->mdsc; __ceph_dentry_dir_lease_touch() local
1627 struct ceph_mds_client *mdsc; __dentry_lease_unlist() local
1657 __dentry_leases_walk(struct ceph_mds_client * mdsc,struct ceph_lease_walk_control * lwc) __dentry_leases_walk() argument
1786 ceph_trim_dentries(struct ceph_mds_client * mdsc) ceph_trim_dentries() argument
1869 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(dentry->d_sb)->mdsc; dentry_lease_is_valid() local
1943 dir_lease_is_valid(struct inode * dir,struct dentry * dentry,struct ceph_mds_client * mdsc) dir_lease_is_valid() argument
1980 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(dentry->d_sb)->mdsc; ceph_d_revalidate() local
2124 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dentry->d_sb); ceph_d_prune() local
[all...]
H A Dmds_client.h66 * mdsc->mutex
68 * mdsc->snap_rwsem
71 * mdsc->snap_flush_lock
72 * mdsc->cap_delay_lock
321 typedef void (*ceph_mds_request_callback_t) (struct ceph_mds_client *mdsc,
326 typedef int (*ceph_mds_request_wait_callback_t) (struct ceph_mds_client *mdsc,
629 int ceph_mdsc_schedule_reset(struct ceph_mds_client *mdsc,
631 int ceph_mdsc_wait_for_reset(struct ceph_mds_client *mdsc);
634 extern void ceph_mdsc_close_sessions(struct ceph_mds_client *mdsc);
635 extern void ceph_mdsc_force_umount(struct ceph_mds_client *mdsc);
[all...]
H A Dmetric.c91 static bool ceph_mdsc_send_metrics(struct ceph_mds_client *mdsc, in ceph_mdsc_send_metrics() argument
105 struct ceph_client_metric *m = &mdsc->metric; in ceph_mdsc_send_metrics()
109 struct ceph_client *cl = mdsc->fsc->client; in ceph_mdsc_send_metrics()
119 mutex_lock(&mdsc->mutex); in ceph_mdsc_send_metrics()
120 if (ceph_mdsmap_get_state(mdsc->mdsmap, s->s_mds) != CEPH_MDS_STATE_ACTIVE) { in ceph_mdsc_send_metrics()
121 mutex_unlock(&mdsc->mutex); in ceph_mdsc_send_metrics()
124 mutex_unlock(&mdsc->mutex); in ceph_mdsc_send_metrics()
126 if (ceph_subvolume_metrics_enabled(&mdsc->subvol_metrics) && in ceph_mdsc_send_metrics()
130 ret = ceph_subvolume_metrics_snapshot(&mdsc->subvol_metrics, in ceph_mdsc_send_metrics()
318 mutex_lock(&mdsc->subvol_metrics_last_mutex); in ceph_mdsc_send_metrics()
[all …]
H A Dsuper.c55 ceph_mdsc_close_sessions(fsc->mdsc); in ceph_put_super()
68 if (fsc->mdsc->mdsmap->m_num_data_pg_pools == 1) { in ceph_statfs()
69 data_pool = fsc->mdsc->mdsmap->m_data_pg_pools[0]; in ceph_statfs()
132 ceph_flush_dirty_caps(fsc->mdsc); in ceph_sync_fs()
133 ceph_flush_cap_releases(fsc->mdsc); in ceph_sync_fs()
140 ceph_mdsc_sync(fsc->mdsc); in ceph_sync_fs()
817 ceph_mdsc_handle_mdsmap(fsc->mdsc, msg); in create_fs_client()
820 ceph_mdsc_handle_fsmap(fsc->mdsc, msg); in create_fs_client()
1045 ceph_mdsc_force_umount(fsc->mdsc); in ceph_umount_begin()
1085 struct ceph_mds_client *mdsc in open_root_dentry()
1070 struct ceph_mds_client *mdsc = fsc->mdsc; open_root_dentry() local
1502 __inc_stopping_blocker(struct ceph_mds_client * mdsc) __inc_stopping_blocker() argument
1514 __dec_stopping_blocker(struct ceph_mds_client * mdsc) __dec_stopping_blocker() argument
1524 ceph_inc_mds_stopping_blocker(struct ceph_mds_client * mdsc,struct ceph_mds_session * session) ceph_inc_mds_stopping_blocker() argument
1534 ceph_dec_mds_stopping_blocker(struct ceph_mds_client * mdsc) ceph_dec_mds_stopping_blocker() argument
1540 ceph_inc_osd_stopping_blocker(struct ceph_mds_client * mdsc) ceph_inc_osd_stopping_blocker() argument
1545 ceph_dec_osd_stopping_blocker(struct ceph_mds_client * mdsc) ceph_dec_osd_stopping_blocker() argument
1554 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_kill_sb() local
[all...]
H A Dexport.c133 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(sb)->mdsc; in __lookup_inode() local
149 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LOOKUPINO, in __lookup_inode()
161 err = ceph_mdsc_do_request(mdsc, NULL, req); in __lookup_inode()
215 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(sb)->mdsc; in __snapfh_to_dentry() local
216 struct ceph_client *cl = mdsc->fsc->client; in __snapfh_to_dentry()
249 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LOOKUPINO, in __snapfh_to_dentry()
270 err = ceph_mdsc_do_request(mdsc, NULL, req); in __snapfh_to_dentry()
326 struct ceph_mds_client *mdsc in __get_parent() local
560 struct ceph_mds_client *mdsc; ceph_get_name() local
[all...]
H A Dsuper.h165 struct ceph_mds_client *mdsc;
453 * is protected by the mdsc->cap_dirty_lock, but each individual item
455 * requires the mdsc->cap_dirty_lock. List presence for an item can
575 return (struct ceph_mds_client *)ceph_sb_to_fs_client(sb)->mdsc; in ceph_vino()
934 extern void ceph_caps_init(struct ceph_mds_client *mdsc);
935 extern void ceph_caps_finalize(struct ceph_mds_client *mdsc);
936 extern void ceph_adjust_caps_max_min(struct ceph_mds_client *mdsc,
938 extern int ceph_reserve_caps(struct ceph_mds_client *mdsc,
940 extern void ceph_unreserve_caps(struct ceph_mds_client *mdsc,
1108 struct ceph_snap_realm *ceph_lookup_snap_realm(struct ceph_mds_client *mdsc,
164 struct ceph_mds_client *mdsc; global() member
[all...]
H A Dlocks.c14 static int ceph_lock_wait_for_completion(struct ceph_mds_client *mdsc,
77 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_lock_message() local
78 struct ceph_client *cl = mdsc->fsc->client; in ceph_lock_message()
98 req = ceph_mdsc_create_request(mdsc, operation, USE_AUTH_MDS); in ceph_lock_message()
127 err = ceph_mdsc_submit_request(mdsc, inode, req); in ceph_lock_message()
129 err = ceph_mdsc_wait_request(mdsc, req, wait ? in ceph_lock_message()
157 static int ceph_lock_wait_for_completion(struct ceph_mds_client *mdsc, in ceph_lock_wait_for_completion() argument
160 struct ceph_client *cl = mdsc->fsc->client; in ceph_lock_wait_for_completion()
180 mutex_lock(&mdsc->mutex); in ceph_lock_wait_for_completion()
199 mutex_unlock(&mdsc->mutex); in ceph_lock_wait_for_completion()
[all …]
H A Daddr.c85 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_dirty_folio()
96 atomic64_inc(&mdsc->dirty_folios); in ceph_dirty_folio()
222 ceph_update_read_metrics(&fsc->mdsc->metric, req->r_start_latency, in finish_netfs_read()
265 ceph_subvolume_metrics_record_io(fsc->mdsc, ceph_inode(inode), in finish_netfs_read()
276 ceph_dec_osd_stopping_blocker(fsc->mdsc); in finish_netfs_read()
287 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_netfs_issue_op_inline() local
302 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_GETATTR, mode); in ceph_netfs_issue_op_inline()
312 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_netfs_issue_op_inline()
457 if (!ceph_inc_osd_stopping_blocker(fsc->mdsc)) { in ceph_netfs_issue_read()
875 ceph_update_write_metrics(&fsc->mdsc in write_folio_nounlock()
86 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); ceph_dirty_folio() local
907 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); writepages_finish() local
2410 struct ceph_mds_client *mdsc = fsc->mdsc; __ceph_pool_perm_get() local
2647 ceph_pool_perm_destroy(struct ceph_mds_client * mdsc) ceph_pool_perm_destroy() argument
[all...]
H A Dinode.c51 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_set_ino_cb()
62 percpu_counter_inc(&mdsc->metric.total_inodes); in ceph_vino_matches_parent()
189 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(sb); in ceph_get_inode()
190 struct ceph_client *cl = mdsc->fsc->client; in ceph_get_inode()
748 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_evict_inode()
755 percpu_counter_dec(&mdsc->metric.total_inodes); in ceph_evict_inode()
783 ceph_put_snapid_map(mdsc, ci->i_snapid_map); in ceph_evict_inode()
1047 static int decode_encrypted_symlink(struct ceph_mds_client *mdsc, in ceph_fill_inode()
1051 struct ceph_client *cl = mdsc->fsc->client; in ceph_fill_inode()
1072 static int decode_encrypted_symlink(struct ceph_mds_client *mdsc, in ceph_fill_inode()
48 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); ceph_set_ino_cb() local
180 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(sb); ceph_get_inode() local
739 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); ceph_evict_inode() local
979 decode_encrypted_symlink(struct ceph_mds_client * mdsc,const char * encsym,int enclen,u8 ** decsym) decode_encrypted_symlink() argument
1004 decode_encrypted_symlink(struct ceph_mds_client * mdsc,const char * encsym,int symlen,u8 ** decsym) decode_encrypted_symlink() argument
1022 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); ceph_fill_inode() local
2583 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; __ceph_setattr() local
3006 struct ceph_mds_client *mdsc = fsc->mdsc; __ceph_do_getattr() local
3054 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_do_getvxattr() local
[all...]
H A Dfile.c42 static __le32 ceph_flags_sys2wire(struct ceph_mds_client *mdsc, u32 flags) in ceph_flags_sys2wire() argument
44 struct ceph_client *cl = mdsc->fsc->client; in ceph_flags_sys2wire()
183 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(sb); in put_bvecs()
191 req = ceph_mdsc_create_request(mdsc, op, want_auth); in put_bvecs()
195 req->r_args.open.flags = ceph_flags_sys2wire(mdsc, flags);
303 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_init_file()
304 struct ceph_client *cl = mdsc->fsc->client; in ceph_init_file()
310 __ceph_touch_fmode(ci, mdsc, fmode); in ceph_init_file()
347 err = ceph_mdsc_do_request(mdsc, NULL, req); in ceph_renew_caps()
366 struct ceph_mds_client *mdsc in ceph_renew_caps()
201 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(sb); prepare_open_request() local
321 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); ceph_renew_caps() local
384 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_open() local
616 ceph_async_create_cb(struct ceph_mds_client * mdsc,struct ceph_mds_request * req) ceph_async_create_cb() argument
687 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb); ceph_finish_async_create() local
801 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_atomic_open() local
[all...]
H A Dxattr.c1124 struct ceph_mds_client *mdsc = fsc->mdsc; in ceph_sync_setxattr()
1149 req = ceph_mdsc_create_request(mdsc, op, USE_AUTH_MDS); in ceph_sync_setxattr()
1176 err = ceph_mdsc_do_request(mdsc, NULL, req); in __ceph_setxattr()
1192 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; in __ceph_setxattr()
1247 (required_blob_size > mdsc->mdsmap->m_max_xattr_size)) { in __ceph_setxattr()
1250 mdsc->mdsmap->m_max_xattr_size); in __ceph_setxattr()
1256 if (!down_read_trylock(&mdsc->snap_rwsem)) { in __ceph_setxattr()
1258 down_read(&mdsc in __ceph_setxattr()
1114 struct ceph_mds_client *mdsc = fsc->mdsc; ceph_sync_setxattr() local
1182 struct ceph_mds_client *mdsc = ceph_sb_to_fs_client(inode->i_sb)->mdsc; __ceph_setxattr() local
[all...]
H A Dmdsmap.c119 struct ceph_mdsmap *ceph_mdsmap_decode(struct ceph_mds_client *mdsc, void **p, in ceph_mdsmap_decode() argument
122 struct ceph_client *cl = mdsc->fsc->client; in ceph_mdsmap_decode()
389 if (!namespace_equals(mdsc->fsc->mount_options, m->m_fs_name, in ceph_mdsmap_decode()
393 mdsc->fsc->mount_options->mds_namespace); in ceph_mdsmap_decode()
H A Dsubvolume_metrics.c370 void ceph_subvolume_metrics_record_io(struct ceph_mds_client *mdsc, in ceph_subvolume_metrics_record_io() argument
379 if (!mdsc || !ci || !bytes) in ceph_subvolume_metrics_record_io()
382 tracker = &mdsc->subvol_metrics; in ceph_subvolume_metrics_record_io()
H A Dmdsmap.h75 struct ceph_mdsmap *ceph_mdsmap_decode(struct ceph_mds_client *mdsc, void **p,
H A Dsubvolume_metrics.h83 void ceph_subvolume_metrics_record_io(struct ceph_mds_client *mdsc,
/linux/include/trace/events/
H A Dceph.h53 TP_PROTO(struct ceph_mds_client *mdsc,
56 TP_ARGS(mdsc, req),
90 TP_PROTO(struct ceph_mds_client *mdsc,
95 TP_ARGS(mdsc, session, req, reason),
118 TP_PROTO(struct ceph_mds_client *mdsc,
121 TP_ARGS(mdsc, req),
163 TP_PROTO(struct ceph_mds_client *mdsc,
166 TP_ARGS(mdsc, req),
190 TP_PROTO(struct ceph_mds_client *mdsc,
197 TP_ARGS(mdsc, session, op, vino, inode, seq, mseq, issue_seq),
[all …]