Home
last modified time | relevance | path

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

/linux-4.1.27/fs/nfs/
Dnfs4_fs.h52 int (*init_client)(struct nfs_client *);
53 void (*shutdown_client)(struct nfs_client *);
197 int (*establish_clid)(struct nfs_client *, struct rpc_cred *);
198 int (*reclaim_complete)(struct nfs_client *, struct rpc_cred *);
199 int (*detect_trunking)(struct nfs_client *, struct nfs_client **,
204 int (*sched_state_renewal)(struct nfs_client *, struct rpc_cred *, unsigned);
205 struct rpc_cred * (*get_state_renewal_cred_locked)(struct nfs_client *);
206 int (*renew_lease)(struct nfs_client *, struct rpc_cred *);
236 extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, struct rpc_cred *, struc…
237 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.c150 struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_init) in nfs_alloc_client()
152 struct nfs_client *clp; in nfs_alloc_client()
209 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
227 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
240 void nfs_free_client(struct nfs_client *clp) in nfs_free_client()
266 void nfs_put_client(struct nfs_client *clp) in nfs_put_client()
402 static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *data) in nfs_match_client()
404 struct nfs_client *clp; in nfs_match_client()
433 static bool nfs_client_init_is_complete(const struct nfs_client *clp) in nfs_client_init_is_complete()
438 int nfs_wait_client_init_complete(const struct nfs_client *clp) in nfs_wait_client_init_complete()
[all …]
Ddelegation.c251 struct nfs_client *clp) in nfs_abort_delegation_return()
264 struct nfs_client *clp) in nfs_detach_delegation_locked()
286 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation()
329 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation()
405 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in nfs_end_delegation_return()
466 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations()
547 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_if_closed_delegation()
554 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation()
569 static void nfs_client_mark_return_all_delegations(struct nfs_client *clp) in nfs_client_mark_return_all_delegations()
579 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()
Dpnfs.h56 struct nfs_client *ds_clp;
248 void pnfs_destroy_all_layouts(struct nfs_client *);
249 int pnfs_destroy_layouts_byfsid(struct nfs_client *clp,
252 int pnfs_destroy_layouts_byclid(struct nfs_client *clp,
287 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp);
306 const struct nfs_client *nfs_client; member
318 void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const s…
324 void nfs4_deviceid_purge_client(const struct nfs_client *);
545 static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
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()
Dcallback_proc.c115 static struct pnfs_layout_hdr * get_layout_by_fh_locked(struct nfs_client *clp, in get_layout_by_fh_locked()
147 static struct pnfs_layout_hdr * get_layout_by_fh(struct nfs_client *clp, in get_layout_by_fh()
161 static u32 initiate_file_draining(struct nfs_client *clp, in initiate_file_draining()
202 static u32 initiate_bulk_draining(struct nfs_client *clp, in initiate_bulk_draining()
216 static u32 do_callback_layoutrecall(struct nfs_client *clp, in do_callback_layoutrecall()
247 static void pnfs_recall_all_layouts(struct nfs_client *clp) in pnfs_recall_all_layouts()
263 struct nfs_client *clp = cps->clp; in nfs4_callback_devicenotify()
366 static bool referring_call_exists(struct nfs_client *clp, in referring_call_exists()
421 struct nfs_client *clp; in nfs4_callback_sequence()
Dsuper.c443 error = server->nfs_client->rpc_ops->statfs(server, fh, &res); in nfs_statfs()
602 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options()
645 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
726 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
738 if (nfs4_has_session(server->nfs_client)) in show_sessions()
758 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id()
759 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id()
835 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
2192 data->version != nfss->nfs_client->rpc_ops->version || in nfs_compare_remount_data()
2193 data->minorversion != nfss->nfs_client->cl_minorversion || in nfs_compare_remount_data()
[all …]
Dnfs4proc.c349 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception()
437 server->nfs_client->cl_hostname); in nfs4_handle_exception()
455 static bool _nfs4_is_integrity_protected(struct nfs_client *clp) in _nfs4_is_integrity_protected()
466 static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease()
476 do_renew_lease(server->nfs_client, timestamp); in renew_lease()
599 struct nfs_client *clp; in nfs41_sequence_done()
782 return nfs40_setup_sequence(server->nfs_client->cl_slot_tbl, in nfs4_setup_sequence()
824 return nfs40_setup_sequence(server->nfs_client->cl_slot_tbl, in nfs4_setup_sequence()
863 struct nfs_client *clp = server->nfs_client; in nfs4_call_sync_sequence()
1022 alloc_seqid = server->nfs_client->cl_mvops->alloc_seqid; in nfs4_opendata_alloc()
[all …]
Dcallback.h42 struct nfs_client *clp;
190 extern int check_gss_callback_principal(struct nfs_client *, struct svc_rqst *);
201 extern int nfs4_set_callback_sessionid(struct nfs_client *clp);
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()
Dpnfs_nfs.c550 static struct nfs_client *(*get_v3_ds_connect)(
551 struct nfs_client *mds_clp,
584 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v3_ds_connect()
598 clp = get_v3_ds_connect(mds_srv->nfs_client, in _nfs4_pnfs_v3_ds_connect()
625 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v4_ds_connect()
636 clp = nfs4_set_ds_client(mds_srv->nfs_client, in _nfs4_pnfs_v4_ds_connect()
650 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()
733 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_name_to_uid()
750 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_group_to_gid()
767 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_uid_to_name()
781 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()
Dpnfs.c95 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver()
96 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver()
116 if (!(server->nfs_client->cl_exchange_flags & in set_pnfs_layoutdriver()
119 __func__, id, server->nfs_client->cl_exchange_flags); in set_pnfs_layoutdriver()
141 atomic_inc(&server->nfs_client->cl_mds_count); in set_pnfs_layoutdriver()
219 struct nfs_client *clp = server->nfs_client; in pnfs_free_layout_hdr()
633 pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, in pnfs_layout_bulk_destroy_byserver_locked()
696 pnfs_destroy_layouts_byfsid(struct nfs_client *clp, in pnfs_destroy_layouts_byfsid()
723 pnfs_destroy_layouts_byclid(struct nfs_client *clp, in pnfs_destroy_layouts_byclid()
751 pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
[all …]
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()
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()
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()
1640 NFS_SERVER(inode)->nfs_client->cl_hostname, in nfs_update_inode()
Dcallback.c418 check_gss_callback_principal(struct nfs_client *clp, struct svc_rqst *rqstp) in check_gss_callback_principal()
Dnfs4trace.h197 const struct nfs_client *clp,
227 const struct nfs_client *clp, \
Dwrite.c1281 nfs4_state_protect_write(NFS_SERVER(hdr->inode)->nfs_client, in nfs_initiate_write()
1454 NFS_SERVER(inode)->nfs_client->cl_hostname, in nfs_writeback_done()
1567 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.c1795 struct nfs_client *clp = args->client; in encode_create_session()
2598 struct nfs_client *clp) in nfs4_xdr_enc_renew()
2801 struct nfs_client *clp) in nfs4_xdr_enc_destroy_clientid()
3091 static int decode_ace(struct xdr_stream *xdr, void *ace, struct nfs_client *clp) in decode_ace()
4950 return decode_ace(xdr, NULL, res->server->nfs_client); in decode_rw_delegation()
Ddir.c1666 error = server->nfs_client->rpc_ops->getattr(server, fhandle, fattr, NULL); in nfs_instantiate()
/linux-4.1.27/include/linux/
Dnfs_fs_sb.h26 struct nfs_client { struct
123 struct nfs_client * nfs_client; /* shared client and NFS4 state */ member
Dnfs_xdr.h314 struct nfs_client *clp;
1147 struct nfs_client *client;
1173 struct nfs_client *client;
1196 struct nfs_client *client;
1354 struct nfs_client *ds_clp; /* pNFS data server */
1393 struct nfs_client *ds_clp; /* pNFS data server */
1432 struct nfs_client;
1511 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *);
1512 struct nfs_client *
1513 (*init_client) (struct nfs_client *, const struct rpc_timeout *,
[all …]
Dnfs_fs.h250 return NFS_SERVER(inode)->nfs_client->rpc_ops; in NFS_PROTO()
/linux-4.1.27/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.c123 struct nfs_client *clp, in filelayout_async_handle_error()
130 struct nfs_client *mds_client = mds_server->nfs_client; in filelayout_async_handle_error()
/linux-4.1.27/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.1.27/fs/nfs/flexfilelayout/
Dflexfilelayout.h150 struct nfs_client *ds_clp,
Dflexfilelayout.c673 struct nfs_client *clp, in ff_layout_async_handle_error_v4()
682 struct nfs_client *mds_client = mds_server->nfs_client; in ff_layout_async_handle_error_v4()
811 struct nfs_client *clp, in ff_layout_async_handle_error()
945 static int ff_layout_setup_sequence(struct nfs_client *ds_clp, in ff_layout_setup_sequence()
Dflexfilelayoutdev.c79 da = nfs4_decode_mp_ds_addr(server->nfs_client->cl_net, in nfs4_ff_alloc_deviceid_node()
465 struct nfs_client *ds_clp, struct inode *inode) in nfs4_ff_find_or_create_ds_client()
/linux-4.1.27/fs/nfs/blocklayout/
Drpc_pipefs.c56 struct net *net = server->nfs_client->cl_net; in bl_resolve_deviceid()