Home
last modified time | relevance | path

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

123

/linux/fs/nfs/
H A 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 …]
H A Dnfs4client.c30 static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion) in nfs_get_cb_ident_idr()
62 nfs4_find_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor) in nfs4_find_ds_client()
79 nfs4_add_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor, in nfs4_add_ds_client()
99 nfs4_alloc_ds_server(struct nfs_client *ds_clp, rpc_authflavor_t flavor) in nfs4_alloc_ds_server()
134 nfs4_find_or_create_ds_client(struct nfs_client *ds_clp, struct inode *inode) in nfs4_find_or_create_ds_client()
154 nfs4_shutdown_ds_clients(struct nfs_client *clp) in nfs4_shutdown_ds_clients()
168 nfs4_cleanup_callback(struct nfs_client *clp) in nfs4_cleanup_callback()
180 void nfs41_shutdown_client(struct nfs_client *clp) in nfs41_shutdown_client()
192 void nfs40_shutdown_client(struct nfs_client *clp) in nfs40_shutdown_client()
200 struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init) in nfs4_alloc_client()
[all …]
H A 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()
159 static inline int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session()
167 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session()
172 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session()
H A Ddelegation.h57 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle);
59 void nfs_expire_all_delegations(struct nfs_client *clp);
60 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags);
61 void nfs_expire_unreferenced_delegations(struct nfs_client *clp);
62 int nfs_client_return_marked_delegations(struct nfs_client *clp);
63 int nfs_delegations_present(struct nfs_client *clp);
67 void nfs_delegation_mark_reclaim(struct nfs_client *clp);
68 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
70 void nfs_mark_test_expired_all_delegations(struct nfs_client *clp);
71 void nfs_test_expired_all_delegations(struct nfs_client *clp);
[all …]
H A 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 …]
H A 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()
214 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
232 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
245 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()
289 static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *data) in nfs_match_client()
291 struct nfs_client *clp; in nfs_match_client()
361 bool nfs_client_init_is_complete(const struct nfs_client *clp) in nfs_client_init_is_complete()
373 int nfs_client_init_status(const struct nfs_client *clp) in nfs_client_init_status()
[all …]
H A Dinternal.h214 extern struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *);
215 int nfs_create_rpc_client(struct nfs_client *, const struct nfs_client_initdata *, rpc_authflavor_t…
216 struct nfs_client *nfs_get_client(const struct nfs_client_initdata *);
226 extern void nfs_put_client(struct nfs_client *);
227 extern void nfs_free_client(struct nfs_client *);
228 extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
229 extern struct nfs_client *
244 extern bool nfs_client_init_is_complete(const struct nfs_client *clp);
245 extern int nfs_client_init_status(const struct nfs_client *clp);
246 extern int nfs_wait_client_init_complete(const struct nfs_client *clp);
[all …]
H A 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()
176 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, in __nfs4_find_get_deviceid()
229 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid()
257 d->nfs_client = server->nfs_client; in nfs4_init_deviceid_node()
280 nfs4_delete_deviceid(d->ld, d->nfs_client, &d->deviceid); in nfs4_put_deviceid_node()
284 trace_nfs4_deviceid_free(d->nfs_client, &d->deviceid); in nfs4_put_deviceid_node()
328 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client()
336 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client()
[all …]
H A Ddelegation.c97 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation()
360 &server->nfs_client->cl_state); in nfs_abort_delegation_return()
368 struct nfs_client *clp) in nfs_detach_delegation_locked()
397 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation()
468 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation()
599 err = nfs4_wait_clnt_recover(server->nfs_client); in nfs_end_delegation_return()
695 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_server_return_marked_delegations()
723 static bool nfs_client_clear_delayed_delegations(struct nfs_client *clp) in nfs_client_clear_delayed_delegations()
750 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations()
899 (nfs4_has_session(NFS_SERVER(inode)->nfs_client) && in nfs4_inode_make_writeable()
[all …]
H A 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()
H A Dsuper.c243 int nfs_client_for_each_server(struct nfs_client *clp, in nfs_client_for_each_server()
267 error = server->nfs_client->rpc_ops->statfs(server, fh, &res); in nfs_statfs()
417 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options()
466 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
581 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
592 struct nfs_client *clp = server->nfs_client; in show_lease()
603 if (nfs4_has_session(server->nfs_client)) in show_sessions()
623 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id()
624 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id()
700 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
[all …]
H A Dnfs42.h37 struct nfs_client *c_in = (NFS_SERVER(file_inode(in)))->nfs_client; in nfs42_files_from_same_server()
38 struct nfs_client *c_out = (NFS_SERVER(file_inode(out)))->nfs_client; in nfs42_files_from_same_server()
H A Dsysfs.c203 netns->nfs_client = clp; in nfs_netns_sysfs_setup()
210 struct nfs_netns_client *clp = netns->nfs_client; in nfs_netns_sysfs_destroy()
218 netns->nfs_client = NULL; in nfs_netns_sysfs_destroy()
237 static void shutdown_nfs_client(struct nfs_client *clp) in shutdown_nfs_client()
290 shutdown_nfs_client(server->nfs_client); in shutdown_store()
302 struct nfs41_impl_id *impl_id = server->nfs_client->cl_implid; in implid_domain_show()
317 struct nfs41_impl_id *impl_id = server->nfs_client->cl_implid; in implid_name_show()
355 return container_of(kobj, struct nfs_server, kobj)->nfs_client->cl_net; in nfs_netns_server_namespace()
370 if (!server->nfs_client->cl_implid) in nfs_sysfs_add_nfsv41_server()
398 bool localio = nfs_server_is_local(server->nfs_client); in localio_show()
H A Dnfs4idmap.h44 struct nfs_client;
51 int nfs_idmap_new(struct nfs_client *);
52 void nfs_idmap_delete(struct nfs_client *);
H A Dnfs3client.c85 struct nfs_client *nfs3_set_ds_client(struct nfs_server *mds_srv, in nfs3_set_ds_client()
91 struct nfs_client *mds_clp = mds_srv->nfs_client; in nfs3_set_ds_client()
110 struct nfs_client *clp; in nfs3_set_ds_client()
H A Dpnfs.h64 struct nfs_client *ds_clp;
283 void pnfs_destroy_all_layouts(struct nfs_client *);
284 int pnfs_layout_destroy_byfsid(struct nfs_client *clp, struct nfs_fsid *fsid,
286 int pnfs_layout_destroy_byclid(struct nfs_client *clp,
349 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp);
355 void pnfs_layout_return_unused_byclid(struct nfs_client *clp,
357 int pnfs_layout_handle_reboot(struct nfs_client *clp);
371 const struct nfs_client *nfs_client; member
383 void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const s…
390 void nfs4_deviceid_purge_client(const struct nfs_client *);
[all …]
H A Dnfs4proc.c102 static struct rpc_task *_nfs41_proc_sequence(struct nfs_client *clp,
415 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid()
507 struct nfs_client *clp = server->nfs_client; in nfs4_do_handle_exception()
615 server->nfs_client->cl_hostname); in nfs4_do_handle_exception()
645 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception()
678 struct nfs_client *clp = server->nfs_client; in nfs4_async_handle_exception()
750 static bool _nfs4_is_integrity_protected(struct nfs_client *clp) in _nfs4_is_integrity_protected()
756 static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease()
766 struct nfs_client *clp = server->nfs_client; in renew_lease()
870 static void nfs4_probe_sequence(struct nfs_client *client, const struct cred *cred, in nfs4_probe_sequence()
[all …]
H A Dlocalio.c61 static inline bool nfs_client_is_local(const struct nfs_client *clp) in nfs_client_is_local()
66 bool nfs_server_is_local(const struct nfs_client *clp) in nfs_server_is_local()
131 static struct rpc_clnt *nfs_init_localioclient(struct nfs_client *clp) in nfs_init_localioclient()
145 static bool nfs_server_uuid_is_local(struct nfs_client *clp) in nfs_server_uuid_is_local()
178 static void nfs_local_probe(struct nfs_client *clp) in nfs_local_probe()
199 struct nfs_client *clp = in nfs_local_probe_async_work()
200 container_of(work, struct nfs_client, cl_local_probe_work); in nfs_local_probe_async_work()
208 void nfs_local_probe_async(struct nfs_client *clp) in nfs_local_probe_async()
233 __nfs_local_open_fh(struct nfs_client *clp, const struct cred *cred, in __nfs_local_open_fh()
266 nfs_local_open_fh(struct nfs_client *clp, const struct cred *cred, in nfs_local_open_fh()
[all …]
H A Dnfs42proc.c29 struct nfs_client *clp = (NFS_SERVER(file_inode(filep)))->nfs_client; in nfs42_set_netaddr()
216 spin_lock(&dst_server->nfs_client->cl_lock); in nfs4_copy_dequeue_callback()
218 spin_unlock(&dst_server->nfs_client->cl_lock); in nfs4_copy_dequeue_callback()
220 spin_lock(&src_server->nfs_client->cl_lock); in nfs4_copy_dequeue_callback()
222 spin_unlock(&src_server->nfs_client->cl_lock); in nfs4_copy_dequeue_callback()
237 struct nfs_client *clp = dst_server->nfs_client; in handle_async_copy()
246 spin_lock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
248 &dst_server->nfs_client->pending_cb_stateids, in handle_async_copy()
258 spin_unlock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
270 spin_unlock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
[all …]
H A Dnfs4idmap.c442 nfs_idmap_new(struct nfs_client *clp) in nfs_idmap_new()
483 nfs_idmap_delete(struct nfs_client *clp) in nfs_idmap_delete()
734 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_name_to_uid()
751 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_group_to_gid()
768 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_uid_to_name()
782 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_gid_to_group()
/linux/include/linux/
H A Dnfslocalio.h19 struct nfs_client;
47 void nfs_localio_enable_client(struct nfs_client *clp);
48 void nfs_localio_disable_client(struct nfs_client *clp);
116 struct nfs_client;
117 static inline void nfs_localio_disable_client(struct nfs_client *clp) in nfs_localio_disable_client()
H A Dnfs_fs_sb.h29 struct nfs_client { struct
144 struct nfs_client * nfs_client; /* shared client and NFS4 state */ argument
H A Dnfs_xdr.h348 struct nfs_client *clp;
1206 struct nfs_client *sc_clnt;
1361 struct nfs_client *client;
1386 struct nfs_client *client;
1410 struct nfs_client *client;
1686 struct nfs_client *ds_clp; /* pNFS data server */
1726 struct nfs_client *ds_clp; /* pNFS data server */
1769 struct nfs_client;
1853 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *);
1854 struct nfs_client *(*init_client) (struct nfs_client *,
[all …]
/linux/fs/nfs_common/
H A Dnfslocalio.c141 void nfs_localio_enable_client(struct nfs_client *clp) in nfs_localio_enable_client()
219 void nfs_localio_disable_client(struct nfs_client *clp) in nfs_localio_disable_client()
231 struct nfs_client *clp; in nfs_localio_invalidate_clients()
239 clp = container_of(nfs_uuid, struct nfs_client, cl_uuid); in nfs_localio_invalidate_clients()
/linux/Documentation/filesystems/nfs/
H A Dpnfs.rst25 struct nfs_client (cl_layouts). Being put on this list does not bump
32 lsegs reference device ids, which are resolved per nfs_client and
41 deviceid's per filesystem, and multiple filesystems per nfs_client.

123