Home
last modified time | relevance | path

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

/linux-4.4.14/fs/nfs/
Dnfs4_fs.h52 int (*init_client)(struct nfs_client *);
53 void (*shutdown_client)(struct nfs_client *);
199 int (*establish_clid)(struct nfs_client *, struct rpc_cred *);
200 int (*reclaim_complete)(struct nfs_client *, struct rpc_cred *);
201 int (*detect_trunking)(struct nfs_client *, struct nfs_client **,
206 int (*sched_state_renewal)(struct nfs_client *, struct rpc_cred *, unsigned);
207 struct rpc_cred * (*get_state_renewal_cred_locked)(struct nfs_client *);
208 int (*renew_lease)(struct nfs_client *, struct rpc_cred *);
239 extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, struct rpc_cred *, struc…
240 extern int nfs4_proc_setclientid_confirm(struct nfs_client *, struct nfs4_setclientid_res *arg, str…
[all …]
Dnfs4client.c27 static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion) in nfs_get_cb_ident_idr()
57 nfs4_find_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor) in nfs4_find_ds_client()
74 nfs4_add_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor, in nfs4_add_ds_client()
94 nfs4_alloc_ds_server(struct nfs_client *ds_clp, rpc_authflavor_t flavor) in nfs4_alloc_ds_server()
125 nfs4_find_or_create_ds_client(struct nfs_client *ds_clp, struct inode *inode) in nfs4_find_or_create_ds_client()
145 nfs4_shutdown_ds_clients(struct nfs_client *clp) in nfs4_shutdown_ds_clients()
159 void nfs41_shutdown_client(struct nfs_client *clp) in nfs41_shutdown_client()
170 void nfs40_shutdown_client(struct nfs_client *clp) in nfs40_shutdown_client()
178 struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init) in nfs4_alloc_client()
181 struct nfs_client *clp = nfs_alloc_client(cl_init); in nfs4_alloc_client()
[all …]
Dnfs4session.h68 struct nfs_client *clp;
100 extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
102 extern int nfs4_init_session(struct nfs_client *clp);
103 extern int nfs4_init_ds_session(struct nfs_client *, unsigned long);
108 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session()
115 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session()
140 static inline int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session()
148 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session()
153 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session()
Ddelegation.h43 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle);
45 void nfs_expire_all_delegations(struct nfs_client *clp);
46 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags);
47 void nfs_expire_unreferenced_delegations(struct nfs_client *clp);
48 int nfs_client_return_marked_delegations(struct nfs_client *clp);
49 int nfs_delegations_present(struct nfs_client *clp);
52 void nfs_delegation_mark_reclaim(struct nfs_client *clp);
53 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
Dnfs4state.c71 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()
157 static void nfs4_root_machine_cred(struct nfs_client *clp) in nfs4_root_machine_cred()
196 struct rpc_cred *nfs4_get_renew_cred_locked(struct nfs_client *clp) in nfs4_get_renew_cred_locked()
227 static void nfs4_end_drain_session(struct nfs_client *clp) in nfs4_end_drain_session()
255 static int nfs4_begin_drain_session(struct nfs_client *clp) in nfs4_begin_drain_session()
273 static int nfs41_setup_state_renewal(struct nfs_client *clp) in nfs41_setup_state_renewal()
297 static void nfs41_finish_session_reset(struct nfs_client *clp) in nfs41_finish_session_reset()
[all …]
Dpnfs_dev.c79 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid()
85 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
111 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; in nfs4_get_device_info()
178 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, in __nfs4_find_get_deviceid()
227 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid()
255 d->nfs_client = server->nfs_client; in nfs4_init_deviceid_node()
278 nfs4_delete_deviceid(d->ld, d->nfs_client, &d->deviceid); in nfs4_put_deviceid_node()
312 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client()
320 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client()
339 nfs4_deviceid_purge_client(const struct nfs_client *clp) in nfs4_deviceid_purge_client()
[all …]
Dinternal.h149 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 *,
164 extern void nfs_put_client(struct nfs_client *);
165 extern void nfs_free_client(struct nfs_client *);
166 extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
167 extern struct nfs_client *
185 extern int nfs_wait_client_init_complete(const struct nfs_client *clp);
186 extern void nfs_mark_client_ready(struct nfs_client *clp, int state);
187 extern struct nfs_client *nfs4_set_ds_client(struct nfs_client* mds_clp,
[all …]
Dclient.c151 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()
210 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
228 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
241 void nfs_free_client(struct nfs_client *clp) in nfs_free_client()
267 void nfs_put_client(struct nfs_client *clp) in nfs_put_client()
293 static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *data) in nfs_match_client()
295 struct nfs_client *clp; in nfs_match_client()
324 static bool nfs_client_init_is_complete(const struct nfs_client *clp) in nfs_client_init_is_complete()
329 int nfs_wait_client_init_complete(const struct nfs_client *clp) in nfs_wait_client_init_complete()
[all …]
Ddelegation.c252 struct nfs_client *clp) in nfs_abort_delegation_return()
265 struct nfs_client *clp) in nfs_detach_delegation_locked()
287 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation()
330 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation()
406 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in nfs_end_delegation_return()
468 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations()
549 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_if_closed_delegation()
556 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation()
571 static void nfs_client_mark_return_all_delegations(struct nfs_client *clp) in nfs_client_mark_return_all_delegations()
581 static void nfs_delegation_run_state_manager(struct nfs_client *clp) in nfs_delegation_run_state_manager()
[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 *);
183 static inline void nfs_fscache_get_client_cookie(struct nfs_client *clp) {} in nfs_fscache_get_client_cookie()
184 static inline void nfs_fscache_release_client_cookie(struct nfs_client *clp) {} in nfs_fscache_release_client_cookie()
Dnfs4idmap.h44 struct nfs_client;
51 int nfs_idmap_new(struct nfs_client *);
52 void nfs_idmap_delete(struct nfs_client *);
Dnfs4renewd.c58 struct nfs_client *clp = in nfs4_renew_state()
59 container_of(work, struct nfs_client, cl_renewd.work); in nfs4_renew_state()
117 nfs4_schedule_state_renewal(struct nfs_client *clp) in nfs4_schedule_state_renewal()
134 nfs4_kill_renewd(struct nfs_client *clp) in nfs4_kill_renewd()
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()
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()
Dnfs3client.c79 struct nfs_client *nfs3_set_ds_client(struct nfs_client *mds_clp, in nfs3_set_ds_client()
92 struct nfs_client *clp; in nfs3_set_ds_client()
Dpnfs.h56 struct nfs_client *ds_clp;
252 void pnfs_destroy_all_layouts(struct nfs_client *);
253 int pnfs_destroy_layouts_byfsid(struct nfs_client *clp,
256 int pnfs_destroy_layouts_byclid(struct nfs_client *clp,
300 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp);
318 const struct nfs_client *nfs_client; member
330 void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const s…
336 void nfs4_deviceid_purge_client(const struct nfs_client *);
576 static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
Dcallback_proc.c117 static struct pnfs_layout_hdr * get_layout_by_fh_locked(struct nfs_client *clp, in get_layout_by_fh_locked()
149 static struct pnfs_layout_hdr * get_layout_by_fh(struct nfs_client *clp, in get_layout_by_fh()
163 static u32 initiate_file_draining(struct nfs_client *clp, in initiate_file_draining()
205 static u32 initiate_bulk_draining(struct nfs_client *clp, in initiate_bulk_draining()
219 static u32 do_callback_layoutrecall(struct nfs_client *clp, in do_callback_layoutrecall()
250 static void pnfs_recall_all_layouts(struct nfs_client *clp) in pnfs_recall_all_layouts()
266 struct nfs_client *clp = cps->clp; in nfs4_callback_devicenotify()
367 static bool referring_call_exists(struct nfs_client *clp, in referring_call_exists()
423 struct nfs_client *clp; in nfs4_callback_sequence()
Dsuper.c446 error = server->nfs_client->rpc_ops->statfs(server, fh, &res); in nfs_statfs()
605 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options()
648 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
729 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
741 if (nfs4_has_session(server->nfs_client)) in show_sessions()
761 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id()
762 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id()
838 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
2195 data->version != nfss->nfs_client->rpc_ops->version || in nfs_compare_remount_data()
2196 data->minorversion != nfss->nfs_client->cl_minorversion || in nfs_compare_remount_data()
[all …]
Dnfs4proc.c350 struct nfs_client *clp = server->nfs_client; in nfs4_do_handle_exception()
433 server->nfs_client->cl_hostname); in nfs4_do_handle_exception()
448 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception()
473 struct nfs_client *clp = server->nfs_client; in nfs4_async_handle_exception()
522 static bool _nfs4_is_integrity_protected(struct nfs_client *clp) in _nfs4_is_integrity_protected()
533 static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease()
543 struct nfs_client *clp = server->nfs_client; in renew_lease()
669 struct nfs_client *clp; in nfs41_sequence_done()
851 return nfs40_setup_sequence(server->nfs_client->cl_slot_tbl, in nfs4_setup_sequence()
893 return nfs40_setup_sequence(server->nfs_client->cl_slot_tbl, in nfs4_setup_sequence()
[all …]
Dfscache-index.c71 const struct nfs_client *clp = cookie_netfs_data; in nfs_server_get_key()
213 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_inode_get_aux()
245 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_inode_check_aux()
Dcallback.h42 struct nfs_client *clp;
182 extern int check_gss_callback_principal(struct nfs_client *, struct svc_rqst *);
Dpnfs_nfs.c564 static struct nfs_client *(*get_v3_ds_connect)(
565 struct nfs_client *mds_clp,
598 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v3_ds_connect()
612 clp = get_v3_ds_connect(mds_srv->nfs_client, in _nfs4_pnfs_v3_ds_connect()
639 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v4_ds_connect()
650 clp = nfs4_set_ds_client(mds_srv->nfs_client, in _nfs4_pnfs_v4_ds_connect()
664 status = nfs4_init_ds_session(clp, mds_srv->nfs_client->cl_lease_time); in _nfs4_pnfs_v4_ds_connect()
Dnfs4idmap.c443 nfs_idmap_new(struct nfs_client *clp) in nfs_idmap_new()
481 nfs_idmap_delete(struct nfs_client *clp) in nfs_idmap_delete()
718 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_name_to_uid()
735 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_group_to_gid()
752 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_uid_to_name()
766 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_gid_to_group()
Dnfs4session.c466 struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp) in nfs4_alloc_session()
515 static int nfs41_check_session_ready(struct nfs_client *clp) in nfs41_check_session_ready()
530 int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session()
539 int nfs4_init_ds_session(struct nfs_client *clp, unsigned long lease_time) in nfs4_init_ds_session()
Dnamespace.c160 mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); in nfs_d_automount()
282 err = server->nfs_client->rpc_ops->lookup(d_inode(parent), &dentry->d_name, fh, fattr, NULL); in nfs_submount()
Dpnfs.c96 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver()
97 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver()
117 if (!(server->nfs_client->cl_exchange_flags & in set_pnfs_layoutdriver()
120 __func__, id, server->nfs_client->cl_exchange_flags); in set_pnfs_layoutdriver()
142 atomic_inc(&server->nfs_client->cl_mds_count); in set_pnfs_layoutdriver()
220 struct nfs_client *clp = server->nfs_client; in pnfs_free_layout_hdr()
650 pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, in pnfs_layout_bulk_destroy_byserver_locked()
713 pnfs_destroy_layouts_byfsid(struct nfs_client *clp, in pnfs_destroy_layouts_byfsid()
740 pnfs_destroy_layouts_byclid(struct nfs_client *clp, in pnfs_destroy_layouts_byclid()
768 pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
[all …]
Dgetroot.c91 error = server->nfs_client->rpc_ops->getroot(server, mntfh, &fsinfo); in nfs_get_root()
Dproc.c69 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()
Dnfs3proc.c93 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs3_proc_get_root()
94 status = do_proc_get_root(server->nfs_client->cl_rpcclient, fhandle, info); in nfs3_proc_get_root()
776 if (status && server->nfs_client->cl_rpcclient != server->client) in nfs3_proc_fsinfo()
777 status = do_proc_fsinfo(server->nfs_client->cl_rpcclient, fhandle, info); in nfs3_proc_fsinfo()
Dnfs4trace.h197 const struct nfs_client *clp,
227 const struct nfs_client *clp, \
889 const struct nfs_client *clp,
937 const struct nfs_client *clp, \
Dinode.c315 int minor_version = server->nfs_client->cl_minorversion; in nfs4_label_alloc()
393 inode->i_op = NFS_SB(sb)->nfs_client->rpc_ops->file_inode_ops; in nfs_fhget()
395 inode->i_fop = NFS_SB(sb)->nfs_client->rpc_ops->file_ops; in nfs_fhget()
398 inode->i_op = NFS_SB(sb)->nfs_client->rpc_ops->dir_inode_ops; in nfs_fhget()
1654 NFS_SERVER(inode)->nfs_client->cl_hostname, in nfs_update_inode()
Dcallback.c394 check_gss_callback_principal(struct nfs_client *clp, struct svc_rqst *rqstp) in check_gss_callback_principal()
Dwrite.c1301 nfs4_state_protect_write(NFS_SERVER(hdr->inode)->nfs_client, in nfs_initiate_write()
1469 NFS_SERVER(inode)->nfs_client->cl_hostname, in nfs_writeback_done()
1589 nfs4_state_protect(NFS_SERVER(data->inode)->nfs_client, in nfs_initiate_commit()
Ddirect.c163 struct nfs_client *ds_clp, in nfs_direct_select_verf()
Dnfs4xdr.c1812 struct nfs_client *clp = args->client; in encode_create_session()
2612 struct nfs_client *clp) in nfs4_xdr_enc_renew()
2815 struct nfs_client *clp) in nfs4_xdr_enc_destroy_clientid()
3105 static int decode_ace(struct xdr_stream *xdr, void *ace, struct nfs_client *clp) in decode_ace()
5036 return decode_ace(xdr, NULL, res->server->nfs_client); in decode_rw_delegation()
Ddir.c1655 error = server->nfs_client->rpc_ops->getattr(server, fhandle, fattr, NULL); in nfs_instantiate()
/linux-4.4.14/include/linux/
Dnfs_fs_sb.h26 struct nfs_client { struct
123 struct nfs_client * nfs_client; /* shared client and NFS4 state */ argument
Dnfs_xdr.h316 struct nfs_client *clp;
1056 struct nfs_client *sc_clnt;
1207 struct nfs_client *client;
1231 struct nfs_client *client;
1254 struct nfs_client *client;
1412 struct nfs_client *ds_clp; /* pNFS data server */
1451 struct nfs_client *ds_clp; /* pNFS data server */
1490 struct nfs_client;
1569 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *);
1570 struct nfs_client *
[all …]
Dnfs_fs.h251 return NFS_SERVER(inode)->nfs_client->rpc_ops; in NFS_PROTO()
/linux-4.4.14/fs/nfs/filelayout/
Dfilelayoutdev.c163 da = nfs4_decode_mp_ds_addr(server->nfs_client->cl_net, in nfs4_fl_alloc_deviceid_node()
282 s->nfs_client->cl_minorversion, in nfs4_fl_prepare_ds()
283 s->nfs_client->cl_rpcclient->cl_auth->au_flavor); in nfs4_fl_prepare_ds()
Dfilelayout.c124 struct nfs_client *clp, in filelayout_async_handle_error()
131 struct nfs_client *mds_client = mds_server->nfs_client; in filelayout_async_handle_error()
/linux-4.4.14/Documentation/filesystems/nfs/
Dpnfs.txt23 struct nfs_client (cl_layouts). Being put on this list does not bump
29 lsegs reference device ids, which are resolved per nfs_client and
38 deviceid's per filesystem, and multiple filesystems per nfs_client.
/linux-4.4.14/fs/nfs/flexfilelayout/
Dflexfilelayout.h189 struct nfs_client *ds_clp,
Dflexfilelayoutdev.c79 da = nfs4_decode_mp_ds_addr(server->nfs_client->cl_net, in nfs4_ff_alloc_deviceid_node()
480 struct nfs_client *ds_clp, struct inode *inode) in nfs4_ff_find_or_create_ds_client()
Dflexfilelayout.c964 struct nfs_client *clp, in ff_layout_async_handle_error_v4()
973 struct nfs_client *mds_client = mds_server->nfs_client; in ff_layout_async_handle_error_v4()
1111 struct nfs_client *clp, in ff_layout_async_handle_error()
1286 static int ff_layout_setup_sequence(struct nfs_client *ds_clp, in ff_layout_setup_sequence()
/linux-4.4.14/fs/nfs/blocklayout/
Drpc_pipefs.c56 struct net *net = server->nfs_client->cl_net; in bl_resolve_deviceid()