Home
last modified time | relevance | path

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

12

/fs/nfs/
Dnfs4_fs.h61 int (*init_client)(struct nfs_client *);
62 void (*shutdown_client)(struct nfs_client *);
224 int (*establish_clid)(struct nfs_client *, const struct cred *);
225 int (*reclaim_complete)(struct nfs_client *, const struct cred *);
226 int (*detect_trunking)(struct nfs_client *, struct nfs_client **,
255 struct nfs_client *clp;
260 int (*sched_state_renewal)(struct nfs_client *, const struct cred *, unsigned);
261 const struct cred * (*get_state_renewal_cred)(struct nfs_client *);
262 int (*renew_lease)(struct nfs_client *, const struct cred *);
297 extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, const struct cred *, str…
[all …]
Dnfs4client.c29 static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion) in nfs_get_cb_ident_idr()
61 nfs4_find_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor) in nfs4_find_ds_client()
78 nfs4_add_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor, in nfs4_add_ds_client()
98 nfs4_alloc_ds_server(struct nfs_client *ds_clp, rpc_authflavor_t flavor) in nfs4_alloc_ds_server()
133 nfs4_find_or_create_ds_client(struct nfs_client *ds_clp, struct inode *inode) in nfs4_find_or_create_ds_client()
153 nfs4_shutdown_ds_clients(struct nfs_client *clp) in nfs4_shutdown_ds_clients()
167 nfs4_cleanup_callback(struct nfs_client *clp) in nfs4_cleanup_callback()
179 void nfs41_shutdown_client(struct nfs_client *clp) in nfs41_shutdown_client()
191 void nfs40_shutdown_client(struct nfs_client *clp) in nfs40_shutdown_client()
199 struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init) in nfs4_alloc_client()
[all …]
Ddelegation.h51 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle);
53 void nfs_expire_all_delegations(struct nfs_client *clp);
54 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags);
55 void nfs_expire_unreferenced_delegations(struct nfs_client *clp);
56 int nfs_client_return_marked_delegations(struct nfs_client *clp);
57 int nfs_delegations_present(struct nfs_client *clp);
61 void nfs_delegation_mark_reclaim(struct nfs_client *clp);
62 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
64 void nfs_mark_test_expired_all_delegations(struct nfs_client *clp);
65 void nfs_test_expired_all_delegations(struct nfs_client *clp);
[all …]
Dnfs4state.c70 static void nfs4_state_start_reclaim_reboot(struct nfs_client *clp);
94 static int nfs4_setup_state_renewal(struct nfs_client *clp) in nfs4_setup_state_renewal()
113 int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs4_init_clientid()
158 int nfs40_discover_server_trunking(struct nfs_client *clp, in nfs40_discover_server_trunking()
159 struct nfs_client **result, in nfs40_discover_server_trunking()
194 const struct cred *nfs4_get_machine_cred(struct nfs_client *clp) in nfs4_get_machine_cred()
199 static void nfs4_root_machine_cred(struct nfs_client *clp) in nfs4_root_machine_cred()
233 const struct cred *nfs4_get_renew_cred(struct nfs_client *clp) in nfs4_get_renew_cred()
266 static void nfs4_end_drain_session(struct nfs_client *clp) in nfs4_end_drain_session()
294 static int nfs4_begin_drain_session(struct nfs_client *clp) in nfs4_begin_drain_session()
[all …]
Dnfs4session.h75 struct nfs_client *clp;
109 static inline struct nfs4_session *nfs4_get_session(const struct nfs_client *clp) in nfs4_get_session()
123 extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
125 extern int nfs4_init_session(struct nfs_client *clp);
126 extern int nfs4_init_ds_session(struct nfs_client *, unsigned long);
131 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()
163 static inline int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session()
171 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session()
176 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session()
Dclient.c148 struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_init) in nfs_alloc_client()
150 struct nfs_client *clp; in nfs_alloc_client()
207 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
225 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
238 void nfs_free_client(struct nfs_client *clp) in nfs_free_client()
255 void nfs_put_client(struct nfs_client *clp) in nfs_put_client()
280 static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *data) in nfs_match_client()
282 struct nfs_client *clp; in nfs_match_client()
344 bool nfs_client_init_is_complete(const struct nfs_client *clp) in nfs_client_init_is_complete()
356 int nfs_client_init_status(const struct nfs_client *clp) in nfs_client_init_status()
[all …]
Dpnfs_dev.c80 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid()
86 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
112 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; in nfs4_get_device_info()
179 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, in __nfs4_find_get_deviceid()
232 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid()
260 d->nfs_client = server->nfs_client; in nfs4_init_deviceid_node()
283 nfs4_delete_deviceid(d->ld, d->nfs_client, &d->deviceid); in nfs4_put_deviceid_node()
287 trace_nfs4_deviceid_free(d->nfs_client, &d->deviceid); in nfs4_put_deviceid_node()
331 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client()
339 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client()
[all …]
Ddelegation.c82 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation()
324 struct nfs_client *clp, int err) in nfs_abort_delegation_return()
339 struct nfs_client *clp) in nfs_detach_delegation_locked()
364 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation()
434 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation()
530 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in nfs_end_delegation_return()
656 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_server_return_marked_delegations()
680 static bool nfs_client_clear_delayed_delegations(struct nfs_client *clp) in nfs_client_clear_delayed_delegations()
707 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations()
818 (nfs4_has_session(NFS_SERVER(inode)->nfs_client) && in nfs4_inode_make_writeable()
[all …]
Dinternal.h207 extern struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *);
208 int nfs_create_rpc_client(struct nfs_client *, const struct nfs_client_initdata *, rpc_authflavor_t…
209 struct nfs_client *nfs_get_client(const struct nfs_client_initdata *);
219 extern void nfs_put_client(struct nfs_client *);
220 extern void nfs_free_client(struct nfs_client *);
221 extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
222 extern struct nfs_client *
237 extern bool nfs_client_init_is_complete(const struct nfs_client *clp);
238 extern int nfs_client_init_status(const struct nfs_client *clp);
239 extern int nfs_wait_client_init_complete(const struct nfs_client *clp);
[all …]
Dsuper.c235 int nfs_client_for_each_server(struct nfs_client *clp, in nfs_client_for_each_server()
259 error = server->nfs_client->rpc_ops->statfs(server, fh, &res); in nfs_statfs()
409 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options()
454 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
558 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
569 struct nfs_client *clp = server->nfs_client; in show_lease()
580 if (nfs4_has_session(server->nfs_client)) in show_sessions()
600 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id()
601 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id()
677 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
[all …]
Dnfs4renewd.c58 struct nfs_client *clp = in nfs4_renew_state()
59 container_of(work, struct nfs_client, cl_renewd.work); in nfs4_renew_state()
114 nfs4_schedule_state_renewal(struct nfs_client *clp) in nfs4_schedule_state_renewal()
131 nfs4_kill_renewd(struct nfs_client *clp) in nfs4_kill_renewd()
142 void nfs4_set_lease_period(struct nfs_client *clp, in nfs4_set_lease_period()
Dnfs42.h36 struct nfs_client *c_in = (NFS_SERVER(file_inode(in)))->nfs_client; in nfs42_files_from_same_server()
37 struct nfs_client *c_out = (NFS_SERVER(file_inode(out)))->nfs_client; in nfs42_files_from_same_server()
Dnfs4proc.c102 static struct rpc_task *_nfs41_proc_sequence(struct nfs_client *clp,
384 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid()
472 struct nfs_client *clp = server->nfs_client; in nfs4_do_handle_exception()
580 server->nfs_client->cl_hostname); in nfs4_do_handle_exception()
595 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception()
623 struct nfs_client *clp = server->nfs_client; in nfs4_async_handle_exception()
681 static bool _nfs4_is_integrity_protected(struct nfs_client *clp) in _nfs4_is_integrity_protected()
687 static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease()
697 struct nfs_client *clp = server->nfs_client; in renew_lease()
801 static void nfs4_probe_sequence(struct nfs_client *client, const struct cred *cred, in nfs4_probe_sequence()
[all …]
Dnfs4idmap.h44 struct nfs_client;
51 int nfs_idmap_new(struct nfs_client *);
52 void nfs_idmap_delete(struct nfs_client *);
Dnfs3client.c84 struct nfs_client *nfs3_set_ds_client(struct nfs_server *mds_srv, in nfs3_set_ds_client()
90 struct nfs_client *mds_clp = mds_srv->nfs_client; in nfs3_set_ds_client()
105 struct nfs_client *clp; in nfs3_set_ds_client()
Dpnfs.h62 struct nfs_client *ds_clp;
273 void pnfs_destroy_all_layouts(struct nfs_client *);
274 int pnfs_destroy_layouts_byfsid(struct nfs_client *clp,
277 int pnfs_destroy_layouts_byclid(struct nfs_client *clp,
337 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp);
343 void pnfs_layout_return_unused_byclid(struct nfs_client *clp,
358 const struct nfs_client *nfs_client; member
370 void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const s…
377 void nfs4_deviceid_purge_client(const struct nfs_client *);
714 static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
Dcallback_proc.c127 static struct inode *nfs_layout_find_inode_by_stateid(struct nfs_client *clp, in nfs_layout_find_inode_by_stateid()
163 static struct inode *nfs_layout_find_inode_by_fh(struct nfs_client *clp, in nfs_layout_find_inode_by_fh()
194 static struct inode *nfs_layout_find_inode(struct nfs_client *clp, in nfs_layout_find_inode()
244 static u32 initiate_file_draining(struct nfs_client *clp, in initiate_file_draining()
314 static u32 initiate_bulk_draining(struct nfs_client *clp, in initiate_bulk_draining()
328 static u32 do_callback_layoutrecall(struct nfs_client *clp, in do_callback_layoutrecall()
347 static void pnfs_recall_all_layouts(struct nfs_client *clp) in pnfs_recall_all_layouts()
445 static int referring_call_exists(struct nfs_client *clp, in referring_call_exists()
495 struct nfs_client *clp; in nfs4_callback_sequence()
Dsysfs.c201 netns->nfs_client = clp; in nfs_netns_sysfs_setup()
208 struct nfs_netns_client *clp = netns->nfs_client; in nfs_netns_sysfs_destroy()
216 netns->nfs_client = NULL; in nfs_netns_sysfs_destroy()
262 shutdown_client(server->nfs_client->cl_rpcclient); in shutdown_store()
302 return container_of(kobj, struct nfs_server, kobj)->nfs_client->cl_net; in nfs_netns_server_namespace()
Dnfs42proc.c27 struct nfs_client *clp = (NFS_SERVER(file_inode(filep)))->nfs_client; in nfs42_set_netaddr()
193 spin_lock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
195 &dst_server->nfs_client->pending_cb_stateids, in handle_async_copy()
205 spin_unlock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
217 spin_unlock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
220 spin_lock(&src_server->nfs_client->cl_lock); in handle_async_copy()
222 spin_unlock(&src_server->nfs_client->cl_lock); in handle_async_copy()
226 spin_lock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
228 spin_unlock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
230 spin_lock(&src_server->nfs_client->cl_lock); in handle_async_copy()
[all …]
Dnfs4idmap.c455 nfs_idmap_new(struct nfs_client *clp) in nfs_idmap_new()
496 nfs_idmap_delete(struct nfs_client *clp) in nfs_idmap_delete()
747 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_name_to_uid()
764 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_group_to_gid()
781 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_uid_to_name()
795 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_gid_to_group()
Dnamespace.c151 struct nfs_client *client = server->nfs_client; in nfs_d_automount()
311 err = server->nfs_client->rpc_ops->lookup(d_inode(parent), dentry, in nfs_submount()
Dcallback.h44 struct nfs_client *clp;
201 extern int check_gss_callback_principal(struct nfs_client *, struct svc_rqst *);
Dexport.c97 rpc_ops = NFS_SB(sb)->nfs_client->rpc_ops; in nfs_fh_to_dentry()
125 struct nfs_rpc_ops const *ops = server->nfs_client->rpc_ops; in nfs_get_parent()
Dnfs4session.c559 struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp) in nfs4_alloc_session()
607 static int nfs41_check_session_ready(struct nfs_client *clp) in nfs41_check_session_ready()
622 int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session()
631 int nfs4_init_ds_session(struct nfs_client *clp, unsigned long lease_time) in nfs4_init_ds_session()
Dpnfs.c113 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver()
114 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver()
169 if (!(server->nfs_client->cl_exchange_flags & in set_pnfs_layoutdriver()
172 __func__, server->nfs_client->cl_exchange_flags); in set_pnfs_layoutdriver()
205 atomic_inc(&server->nfs_client->cl_mds_count); in set_pnfs_layoutdriver()
283 struct nfs_client *clp = server->nfs_client; in pnfs_free_layout_hdr()
830 pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, in pnfs_layout_bulk_destroy_byserver_locked()
905 pnfs_destroy_layouts_byfsid(struct nfs_client *clp, in pnfs_destroy_layouts_byfsid()
932 pnfs_destroy_layouts_byclid(struct nfs_client *clp, in pnfs_destroy_layouts_byclid()
960 pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
[all …]

12