/fs/nfs/ |
D | nfs4_fs.h | 195 int (*establish_clid)(struct nfs_client *, struct rpc_cred *); 196 struct rpc_cred * (*get_clid_cred)(struct nfs_client *); 197 int (*reclaim_complete)(struct nfs_client *); 198 int (*detect_trunking)(struct nfs_client *, struct nfs_client **, 203 int (*sched_state_renewal)(struct nfs_client *, struct rpc_cred *, unsigned); 204 struct rpc_cred * (*get_state_renewal_cred_locked)(struct nfs_client *); 205 int (*renew_lease)(struct nfs_client *, struct rpc_cred *); 224 extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, struct rpc_cred *, struc… 225 extern int nfs4_proc_setclientid_confirm(struct nfs_client *, struct nfs4_setclientid_res *arg, str… 227 extern int nfs4_proc_bind_conn_to_session(struct nfs_client *, struct rpc_cred *cred); [all …]
|
D | nfs4client.c | 26 static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion) in nfs_get_cb_ident_idr() 44 static void nfs4_shutdown_session(struct nfs_client *clp) in nfs4_shutdown_session() 53 static void nfs4_shutdown_session(struct nfs_client *clp) in nfs4_shutdown_session() 58 struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init) in nfs4_alloc_client() 61 struct nfs_client *clp = nfs_alloc_client(cl_init); in nfs4_alloc_client() 85 static void nfs4_destroy_callback(struct nfs_client *clp) in nfs4_destroy_callback() 91 static void nfs4_shutdown_client(struct nfs_client *clp) in nfs4_shutdown_client() 106 void nfs4_free_client(struct nfs_client *clp) in nfs4_free_client() 115 static int nfs4_init_callback(struct nfs_client *clp) in nfs4_init_callback() 145 static int nfs4_init_client_minor_version(struct nfs_client *clp) in nfs4_init_client_minor_version() [all …]
|
D | pnfs_dev.c | 76 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() 82 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid() 100 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _find_get_deviceid() 115 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_find_get_deviceid() 131 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid() 156 const struct nfs_client *nfs_client, in nfs4_init_deviceid_node() argument 162 d->nfs_client = nfs_client; in nfs4_init_deviceid_node() 188 d = _find_get_deviceid(new->ld, new->nfs_client, &new->deviceid, hash); in nfs4_insert_deviceid_node() 247 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client() 255 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client() [all …]
|
D | nfs4state.c | 71 int nfs4_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_init_clientid() 116 int nfs40_discover_server_trunking(struct nfs_client *clp, in nfs40_discover_server_trunking() 117 struct nfs_client **result, in nfs40_discover_server_trunking() 148 struct rpc_cred *nfs4_get_machine_cred_locked(struct nfs_client *clp) in nfs4_get_machine_cred_locked() 183 struct rpc_cred *nfs4_get_renew_cred_locked(struct nfs_client *clp) in nfs4_get_renew_cred_locked() 207 static int nfs41_setup_state_renewal(struct nfs_client *clp) in nfs41_setup_state_renewal() 236 static void nfs4_end_drain_session(struct nfs_client *clp) in nfs4_end_drain_session() 273 static int nfs4_begin_drain_session(struct nfs_client *clp) in nfs4_begin_drain_session() 286 static void nfs41_finish_session_reset(struct nfs_client *clp) in nfs41_finish_session_reset() 295 int nfs41_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs41_init_clientid() [all …]
|
D | delegation.h | 42 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle); 44 void nfs_expire_all_delegations(struct nfs_client *clp); 45 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags); 46 void nfs_expire_unreferenced_delegations(struct nfs_client *clp); 47 int nfs_client_return_marked_delegations(struct nfs_client *clp); 48 int nfs_delegations_present(struct nfs_client *clp); 51 void nfs_delegation_mark_reclaim(struct nfs_client *clp); 52 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
|
D | delegation.c | 223 struct nfs_client *clp) in nfs_abort_delegation_return() 236 struct nfs_client *clp) in nfs_detach_delegation_locked() 259 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation() 291 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation() 362 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in nfs_end_delegation_return() 418 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations() 493 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_if_closed_delegation() 500 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation() 515 static void nfs_client_mark_return_all_delegations(struct nfs_client *clp) in nfs_client_mark_return_all_delegations() 525 static void nfs_delegation_run_state_manager(struct nfs_client *clp) in nfs_delegation_run_state_manager() [all …]
|
D | client.c | 151 struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_init) in nfs_alloc_client() 153 struct nfs_client *clp; in nfs_alloc_client() 208 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked() 226 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked() 239 void nfs_free_client(struct nfs_client *clp) in nfs_free_client() 264 void nfs_put_client(struct nfs_client *clp) in nfs_put_client() 400 static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *data) in nfs_match_client() 402 struct nfs_client *clp; in nfs_match_client() 431 static bool nfs_client_init_is_complete(const struct nfs_client *clp) in nfs_client_init_is_complete() 436 int nfs_wait_client_init_complete(const struct nfs_client *clp) in nfs_wait_client_init_complete() [all …]
|
D | internal.h | 149 extern struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *); 150 int nfs_create_rpc_client(struct nfs_client *, const struct rpc_timeout *, rpc_authflavor_t); 151 struct nfs_client *nfs_get_client(const struct nfs_client_initdata *, 163 extern void nfs_put_client(struct nfs_client *); 164 extern void nfs_free_client(struct nfs_client *); 165 extern struct nfs_client *nfs4_find_client_ident(struct net *, int); 166 extern struct nfs_client * 181 extern int nfs_wait_client_init_complete(const struct nfs_client *clp); 182 extern void nfs_mark_client_ready(struct nfs_client *clp, int state); 183 extern struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp, [all …]
|
D | nfs4session.h | 68 struct nfs_client *clp; 90 extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp); 93 extern int nfs4_init_ds_session(struct nfs_client *, unsigned long); 109 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session() 116 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session() 133 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session() 138 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session()
|
D | fscache.h | 27 struct nfs_client *nfs_client; /* the server */ member 73 extern void nfs_fscache_get_client_cookie(struct nfs_client *); 74 extern void nfs_fscache_release_client_cookie(struct nfs_client *); 185 static inline void nfs_fscache_get_client_cookie(struct nfs_client *clp) {} in nfs_fscache_get_client_cookie() 186 static inline void nfs_fscache_release_client_cookie(struct nfs_client *clp) {} in nfs_fscache_release_client_cookie()
|
D | pnfs.h | 198 void pnfs_destroy_all_layouts(struct nfs_client *); 199 int pnfs_destroy_layouts_byfsid(struct nfs_client *clp, 202 int pnfs_destroy_layouts_byclid(struct nfs_client *clp, 232 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp); 252 const struct nfs_client *nfs_client; member 259 …_find_get_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct … 260 void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const s… 263 const struct nfs_client *, 269 void nfs4_deviceid_purge_client(const struct nfs_client *); 388 static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
|
D | fscache.c | 37 void nfs_fscache_get_client_cookie(struct nfs_client *clp) in nfs_fscache_get_client_cookie() 50 void nfs_fscache_release_client_cookie(struct nfs_client *clp) in nfs_fscache_release_client_cookie() 83 key->nfs_client = nfss->nfs_client; in nfs_fscache_get_super_cookie() 105 if (key->nfs_client < xkey->nfs_client) in nfs_fscache_get_super_cookie() 107 if (key->nfs_client > xkey->nfs_client) in nfs_fscache_get_super_cookie() 140 nfss->fscache = fscache_acquire_cookie(nfss->nfs_client->fscache, in nfs_fscache_get_super_cookie() 328 nfss->nfs_client->fscache, in nfs_fscache_reset_inode_cookie()
|
D | nfs4renewd.c | 58 struct nfs_client *clp = in nfs4_renew_state() 59 container_of(work, struct nfs_client, cl_renewd.work); in nfs4_renew_state() 109 nfs4_schedule_state_renewal(struct nfs_client *clp) in nfs4_schedule_state_renewal() 126 nfs4_kill_renewd(struct nfs_client *clp) in nfs4_kill_renewd()
|
D | callback_proc.c | 113 static struct pnfs_layout_hdr * get_layout_by_fh_locked(struct nfs_client *clp, struct nfs_fh *fh) in get_layout_by_fh_locked() 142 static struct pnfs_layout_hdr * get_layout_by_fh(struct nfs_client *clp, struct nfs_fh *fh) in get_layout_by_fh() 155 static u32 initiate_file_draining(struct nfs_client *clp, in initiate_file_draining() 183 static u32 initiate_bulk_draining(struct nfs_client *clp, in initiate_bulk_draining() 197 static u32 do_callback_layoutrecall(struct nfs_client *clp, in do_callback_layoutrecall() 228 static void pnfs_recall_all_layouts(struct nfs_client *clp) in pnfs_recall_all_layouts() 244 struct nfs_client *clp = cps->clp; in nfs4_callback_devicenotify() 350 static bool referring_call_exists(struct nfs_client *clp, in referring_call_exists() 405 struct nfs_client *clp; in nfs4_callback_sequence()
|
D | idmap.c | 427 static void nfs_idmap_unregister(struct nfs_client *clp, in nfs_idmap_unregister() 440 static int nfs_idmap_register(struct nfs_client *clp, in nfs_idmap_register() 459 nfs_idmap_new(struct nfs_client *clp) in nfs_idmap_new() 489 nfs_idmap_delete(struct nfs_client *clp) in nfs_idmap_delete() 501 static int __rpc_pipefs_event(struct nfs_client *clp, unsigned long event, in __rpc_pipefs_event() 538 static struct nfs_client *nfs_get_client_for_event(struct net *net, int event) in nfs_get_client_for_event() 542 struct nfs_client *clp; in nfs_get_client_for_event() 580 struct nfs_client *clp; in rpc_pipefs_event() 845 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_name_to_uid() 861 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_group_to_gid() [all …]
|
D | super.c | 440 error = server->nfs_client->rpc_ops->statfs(server, fh, &res); in nfs_statfs() 598 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options() 641 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options() 722 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options() 734 if (nfs4_has_session(server->nfs_client)) in show_sessions() 754 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id() 755 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id() 831 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats() 2118 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data() 2120 (struct sockaddr *)&nfss->nfs_client->cl_addr)) in nfs_compare_remount_data() [all …]
|
D | callback.h | 40 struct nfs_client *clp; 187 extern int check_gss_callback_principal(struct nfs_client *, struct svc_rqst *); 198 extern int nfs4_set_callback_sessionid(struct nfs_client *clp);
|
D | nfs4proc.c | 283 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception() 368 server->nfs_client->cl_hostname); in nfs4_handle_exception() 381 static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease() 391 do_renew_lease(server->nfs_client, timestamp); in renew_lease() 437 struct nfs_client *clp; in nfs41_sequence_done() 739 return server->nfs_client->cl_mvops->call_sync(clnt, server, msg, in nfs4_call_sync() 850 p->o_arg.clientid = server->nfs_client->cl_clientid; in nfs4_opendata_alloc() 1127 struct nfs_client *clp = NFS_SERVER(state->inode)->nfs_client; in nfs4_opendata_check_deleg() 1408 nfs4_schedule_session_recovery(server->nfs_client->cl_session, err); in nfs4_handle_delegation_recall_error() 1415 nfs4_schedule_lease_recovery(server->nfs_client); in nfs4_handle_delegation_recall_error() [all …]
|
D | nfs4filelayoutdev.c | 160 struct nfs_client *clp = ERR_PTR(-EIO); in nfs4_ds_connect() 165 mds_srv->nfs_client->cl_rpcclient->cl_auth->au_flavor); in nfs4_ds_connect() 171 clp = nfs4_set_ds_client(mds_srv->nfs_client, in nfs4_ds_connect() 184 status = nfs4_init_ds_session(clp, mds_srv->nfs_client->cl_lease_time); in nfs4_ds_connect() 574 NFS_SERVER(ino)->nfs_client, in decode_device() 589 da = decode_ds_addr(NFS_SERVER(ino)->nfs_client->cl_net, in decode_device() 685 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; in filelayout_get_device_info()
|
D | fscache-index.c | 71 const struct nfs_client *clp = cookie_netfs_data; in nfs_server_get_key() 214 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_inode_get_aux() 246 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_inode_check_aux()
|
D | nfs4session.c | 412 struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp) in nfs4_alloc_session() 466 static int nfs41_check_session_ready(struct nfs_client *clp) in nfs41_check_session_ready() 483 struct nfs_client *clp = server->nfs_client; in nfs4_init_session() 526 int nfs4_init_ds_session(struct nfs_client *clp, unsigned long lease_time) in nfs4_init_ds_session()
|
D | pnfs.c | 89 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver() 90 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver() 110 if (!(server->nfs_client->cl_exchange_flags & in set_pnfs_layoutdriver() 113 __func__, id, server->nfs_client->cl_exchange_flags); in set_pnfs_layoutdriver() 135 atomic_inc(&server->nfs_client->cl_mds_count); in set_pnfs_layoutdriver() 213 struct nfs_client *clp = server->nfs_client; in pnfs_free_layout_hdr() 535 pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, in pnfs_layout_bulk_destroy_byserver_locked() 595 pnfs_destroy_layouts_byfsid(struct nfs_client *clp, in pnfs_destroy_layouts_byfsid() 622 pnfs_destroy_layouts_byclid(struct nfs_client *clp, in pnfs_destroy_layouts_byclid() 650 pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts() [all …]
|
D | namespace.c | 160 mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); in nfs_d_automount() 283 err = server->nfs_client->rpc_ops->lookup(parent->d_inode, &dentry->d_name, fh, fattr); in nfs_submount()
|
D | proc.c | 69 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs_proc_get_root() 70 status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); in nfs_proc_get_root() 79 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs_proc_get_root() 80 status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); in nfs_proc_get_root()
|
D | getroot.c | 91 error = server->nfs_client->rpc_ops->getroot(server, mntfh, &fsinfo); in nfs_get_root()
|