Home
last modified time | relevance | path

Searched refs:nfs_client (Results 1 – 25 of 33) sorted by relevance

12

/fs/nfs/
Dnfs4_fs.h194 int (*establish_clid)(struct nfs_client *, struct rpc_cred *);
195 struct rpc_cred * (*get_clid_cred)(struct nfs_client *);
196 int (*reclaim_complete)(struct nfs_client *);
200 int (*sched_state_renewal)(struct nfs_client *, struct rpc_cred *, unsigned);
201 struct rpc_cred * (*get_state_renewal_cred_locked)(struct nfs_client *);
202 int (*renew_lease)(struct nfs_client *, struct rpc_cred *);
212 extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, struct rpc_cred *, struc…
213 extern int nfs4_proc_setclientid_confirm(struct nfs_client *, struct nfs4_setclientid_res *arg, str…
214 extern int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred);
215 extern int nfs4_init_clientid(struct nfs_client *, struct rpc_cred *);
[all …]
Dpnfs_dev.c74 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid()
81 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
99 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _find_get_deviceid()
114 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_find_get_deviceid()
130 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid()
155 const struct nfs_client *nfs_client, in nfs4_init_deviceid_node() argument
161 d->nfs_client = nfs_client; in nfs4_init_deviceid_node()
187 d = _find_get_deviceid(new->ld, new->nfs_client, &new->deviceid, hash); in nfs4_insert_deviceid_node()
222 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client()
231 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client()
[all …]
Dclient.c65 static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion) in nfs_get_cb_ident_idr()
147 static struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_init) in nfs_alloc_client()
149 struct nfs_client *clp; in nfs_alloc_client()
205 static void nfs4_shutdown_session(struct nfs_client *clp) in nfs4_shutdown_session()
214 static void nfs4_shutdown_session(struct nfs_client *clp) in nfs4_shutdown_session()
222 static void nfs4_destroy_callback(struct nfs_client *clp) in nfs4_destroy_callback()
228 static void nfs4_shutdown_client(struct nfs_client *clp) in nfs4_shutdown_client()
249 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
268 static void nfs4_shutdown_client(struct nfs_client *clp) in nfs4_shutdown_client()
276 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
[all …]
Dnfs4state.c66 int nfs4_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_init_clientid()
97 struct rpc_cred *nfs4_get_machine_cred_locked(struct nfs_client *clp) in nfs4_get_machine_cred_locked()
106 static void nfs4_clear_machine_cred(struct nfs_client *clp) in nfs4_clear_machine_cred()
144 struct rpc_cred *nfs4_get_renew_cred_locked(struct nfs_client *clp) in nfs4_get_renew_cred_locked()
168 static int nfs41_setup_state_renewal(struct nfs_client *clp) in nfs41_setup_state_renewal()
197 static void nfs4_end_drain_session(struct nfs_client *clp) in nfs4_end_drain_session()
231 static int nfs4_begin_drain_session(struct nfs_client *clp) in nfs4_begin_drain_session()
245 int nfs41_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs41_init_clientid()
267 struct rpc_cred *nfs4_get_exchange_id_cred(struct nfs_client *clp) in nfs4_get_exchange_id_cred()
282 struct nfs_client *clp = server->nfs_client; in nfs4_get_setclientid_cred_server()
[all …]
Ddelegation.h40 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle);
42 void nfs_expire_all_delegations(struct nfs_client *clp);
43 void nfs_expire_all_delegation_types(struct nfs_client *clp, fmode_t flags);
44 void nfs_expire_unreferenced_delegations(struct nfs_client *clp);
45 int nfs_client_return_marked_delegations(struct nfs_client *clp);
46 int nfs_delegations_present(struct nfs_client *clp);
49 void nfs_delegation_mark_reclaim(struct nfs_client *clp);
50 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
Ddelegation.c190 lockdep_is_held(&server->nfs_client->cl_lock)); in nfs_detach_delegation_locked()
209 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation()
229 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation()
321 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations()
406 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation()
417 struct nfs_client *clp = server->nfs_client; in nfs_super_return_all_delegations()
448 static void nfs_client_mark_return_all_delegation_types(struct nfs_client *clp, in nfs_client_mark_return_all_delegation_types()
459 static void nfs_delegation_run_state_manager(struct nfs_client *clp) in nfs_delegation_run_state_manager()
483 void nfs_expire_all_delegation_types(struct nfs_client *clp, fmode_t flags) in nfs_expire_all_delegation_types()
494 void nfs_expire_all_delegations(struct nfs_client *clp) in nfs_expire_all_delegations()
[all …]
Dinternal.h24 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session()
33 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session()
152 extern void nfs_put_client(struct nfs_client *);
153 extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
154 extern struct nfs_client *
170 extern void nfs_mark_client_ready(struct nfs_client *clp, int state);
171 extern int nfs4_check_client_ready(struct nfs_client *clp);
172 extern struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
240 extern int nfs4_init_ds_session(struct nfs_client *clp);
244 extern int nfs_init_client(struct nfs_client *clp,
[all …]
Dfscache.h27 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 *);
172 static inline void nfs_fscache_get_client_cookie(struct nfs_client *clp) {} in nfs_fscache_get_client_cookie()
173 static inline void nfs_fscache_release_client_cookie(struct nfs_client *clp) {} in nfs_fscache_release_client_cookie()
Dpnfs.h185 void pnfs_destroy_all_layouts(struct nfs_client *);
213 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp);
225 const struct nfs_client *nfs_client; member
231 …_find_get_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const struct …
232 void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const s…
235 const struct nfs_client *,
239 void nfs4_deviceid_purge_client(const struct nfs_client *);
339 static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
Dfscache.c37 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()
94 key->nfs_client = nfss->nfs_client; in nfs_fscache_get_super_cookie()
116 if (key->nfs_client < xkey->nfs_client) in nfs_fscache_get_super_cookie()
118 if (key->nfs_client > xkey->nfs_client) in nfs_fscache_get_super_cookie()
151 nfss->fscache = fscache_acquire_cookie(nfss->nfs_client->fscache, in nfs_fscache_get_super_cookie()
338 nfss->nfs_client->fscache, in nfs_fscache_reset_inode_cookie()
Dnfs4renewd.c58 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()
127 nfs4_kill_renewd(struct nfs_client *clp) in nfs4_kill_renewd()
Didmap.c433 static void nfs_idmap_unregister(struct nfs_client *clp, in nfs_idmap_unregister()
446 static int nfs_idmap_register(struct nfs_client *clp, in nfs_idmap_register()
465 nfs_idmap_new(struct nfs_client *clp) in nfs_idmap_new()
497 nfs_idmap_delete(struct nfs_client *clp) in nfs_idmap_delete()
509 static int __rpc_pipefs_event(struct nfs_client *clp, unsigned long event, in __rpc_pipefs_event()
547 static struct nfs_client *nfs_get_client_for_event(struct net *net, int event) in nfs_get_client_for_event()
551 struct nfs_client *clp; in nfs_get_client_for_event()
573 struct nfs_client *clp; in rpc_pipefs_event()
798 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_name_to_uid()
807 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_group_to_gid()
[all …]
Dcallback_proc.c112 static struct pnfs_layout_hdr * get_layout_by_fh_locked(struct nfs_client *clp, struct nfs_fh *fh) in get_layout_by_fh_locked()
133 static struct pnfs_layout_hdr * get_layout_by_fh(struct nfs_client *clp, struct nfs_fh *fh) in get_layout_by_fh()
146 static u32 initiate_file_draining(struct nfs_client *clp, in initiate_file_draining()
174 static u32 initiate_bulk_draining(struct nfs_client *clp, in initiate_bulk_draining()
225 static u32 do_callback_layoutrecall(struct nfs_client *clp, in do_callback_layoutrecall()
256 static void pnfs_recall_all_layouts(struct nfs_client *clp) in pnfs_recall_all_layouts()
272 struct nfs_client *clp = cps->clp; in nfs4_callback_devicenotify()
378 static bool referring_call_exists(struct nfs_client *clp, in referring_call_exists()
433 struct nfs_client *clp; in nfs4_callback_sequence()
Dnfs4filelayoutdev.c154 struct nfs_client *clp = ERR_PTR(-EIO); in nfs4_ds_connect()
159 mds_srv->nfs_client->cl_rpcclient->cl_auth->au_flavor); in nfs4_ds_connect()
167 clp = nfs4_set_ds_client(mds_srv->nfs_client, in nfs4_ds_connect()
194 spin_lock(&mds_srv->nfs_client->cl_lock); in nfs4_ds_connect()
195 clp->cl_lease_time = mds_srv->nfs_client->cl_lease_time; in nfs4_ds_connect()
196 spin_unlock(&mds_srv->nfs_client->cl_lock); in nfs4_ds_connect()
590 NFS_SERVER(ino)->nfs_client, in decode_device()
605 da = decode_ds_addr(NFS_SERVER(ino)->nfs_client->net, in decode_device()
701 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; in get_device_info()
Dcallback.h40 struct nfs_client *clp;
189 extern int check_gss_callback_principal(struct nfs_client *, struct svc_rqst *);
200 extern int nfs4_set_callback_sessionid(struct nfs_client *clp);
Dsuper.c480 error = server->nfs_client->rpc_ops->statfs(server, fh, &res); in nfs_statfs()
637 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options()
680 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
758 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
769 if (nfs4_has_session(server->nfs_client)) in show_sessions()
789 if (nfss->nfs_client && nfss->nfs_client->impl_id) { in show_implementation_id()
790 struct nfs41_impl_id *impl_id = nfss->nfs_client->impl_id; in show_implementation_id()
864 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
2037 data->nfs_server.addrlen != nfss->nfs_client->cl_addrlen || in nfs_compare_remount_data()
2039 (struct sockaddr *)&nfss->nfs_client->cl_addr)) in nfs_compare_remount_data()
[all …]
Dnfs4proc.c232 static int nfs4_wait_clnt_recover(struct nfs_client *clp) in nfs4_wait_clnt_recover()
265 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception()
340 server->nfs_client->cl_hostname); in nfs4_handle_exception()
353 static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease()
363 do_renew_lease(server->nfs_client, timestamp); in renew_lease()
460 struct nfs_client *clp; in nfs41_sequence_done()
767 return server->nfs_client->cl_mvops->call_sync(clnt, server, msg, in nfs4_call_sync()
841 p->o_arg.clientid = server->nfs_client->cl_clientid; in nfs4_opendata_alloc()
1120 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in nfs4_opendata_to_nfs4_state()
1336 nfs4_schedule_session_recovery(server->nfs_client->cl_session); in nfs4_open_delegation_recall()
[all …]
Dgetroot.c95 error = server->nfs_client->rpc_ops->getroot(server, mntfh, &fsinfo); in nfs_get_root()
153 ret = server->nfs_client->rpc_ops->getroot(server, mntfh, &fsinfo); in nfs4_get_rootfh()
215 error = server->nfs_client->rpc_ops->getattr(server, mntfh, fattr); in nfs4_get_root()
Dfscache-index.c71 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()
Dpnfs.c102 if (!(server->nfs_client->cl_exchange_flags & in set_pnfs_layoutdriver()
105 __func__, id, server->nfs_client->cl_exchange_flags); in set_pnfs_layoutdriver()
430 struct nfs_client *clp; in pnfs_free_lseg_list()
432 clp = NFS_SERVER(lo->plh_inode)->nfs_client; in pnfs_free_lseg_list()
464 pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
651 lrp->clp = NFS_SERVER(ino)->nfs_client; in _pnfs_return_layout()
916 struct nfs_client *clp = server->nfs_client; in pnfs_update_layout()
Dproc.c102 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs_proc_get_root()
103 status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); in nfs_proc_get_root()
112 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs_proc_get_root()
113 status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); in nfs_proc_get_root()
Dnfs4filelayout.h61 struct nfs_client *ds_clp;
Dnfs3proc.c91 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs3_proc_get_root()
92 status = do_proc_get_root(server->nfs_client->cl_rpcclient, fhandle, info); in nfs3_proc_get_root()
789 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs3_proc_fsinfo()
790 status = do_proc_fsinfo(server->nfs_client->cl_rpcclient, fhandle, info); in nfs3_proc_fsinfo()
Dnfs4filelayout.c87 struct nfs_client *clp, in filelayout_async_handle_error()
91 struct nfs_client *mds_client = mds_server->nfs_client; in filelayout_async_handle_error()
486 NFS_SERVER(lo->plh_inode)->nfs_client, id); in filelayout_check_layout()
/fs/nfs/objlayout/
Dobjio_osd.c68 d = nfs4_find_get_deviceid(nfss->pnfs_curr_ld, nfss->nfs_client, d_id); in _dev_list_find()
93 nfss->nfs_client, in _dev_list_add()

12