Home
last modified time | relevance | path

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

12

/linux/fs/nfs/
H A Dnfs4client.c30 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()
190 struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init) in nfs4_alloc_client()
194 struct nfs_client *clp = nfs_alloc_client(cl_init); in nfs4_alloc_client()
[all …]
H A Dnfs4state.c71 static void nfs4_state_start_reclaim_reboot(struct nfs_client *clp);
95 static int nfs4_setup_state_renewal(struct nfs_client *clp) in nfs4_setup_state_renewal()
114 int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs4_init_clientid()
146 const struct cred *nfs4_get_machine_cred(struct nfs_client *clp) in nfs4_get_machine_cred()
151 static void nfs4_root_machine_cred(struct nfs_client *clp) in nfs4_root_machine_cred()
185 const struct cred *nfs4_get_renew_cred(struct nfs_client *clp) in nfs4_get_renew_cred()
218 static void nfs4_end_drain_session(struct nfs_client *clp) in nfs4_end_drain_session()
246 static int nfs4_begin_drain_session(struct nfs_client *clp) in nfs4_begin_drain_session()
262 static void nfs41_finish_session_reset(struct nfs_client *clp) in nfs41_finish_session_reset()
271 int nfs41_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs41_init_clientid()
[all …]
H A Dnfs40client.c21 static void nfs4_swap_callback_idents(struct nfs_client *keep, in nfs4_swap_callback_idents()
22 struct nfs_client *drop) in nfs4_swap_callback_idents()
49 void nfs40_shutdown_client(struct nfs_client *clp) in nfs40_shutdown_client()
63 int nfs40_init_client(struct nfs_client *clp) in nfs40_init_client()
92 void nfs40_handle_cb_pathdown(struct nfs_client *clp) in nfs40_handle_cb_pathdown()
100 void nfs4_schedule_path_down_recovery(struct nfs_client *clp) in nfs4_schedule_path_down_recovery()
119 static int nfs40_walk_client_list(struct nfs_client *new, in nfs40_walk_client_list()
120 struct nfs_client **result, in nfs40_walk_client_list()
124 struct nfs_client *pos, *prev = NULL; in nfs40_walk_client_list()
211 int nfs40_discover_server_trunking(struct nfs_client *clp, in nfs40_discover_server_trunking()
[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 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 Dnfs40proc.c15 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs40_call_sync_prepare()
62 struct nfs_client *client;
73 struct nfs_client *clp = data->client; in nfs4_renew_release()
84 struct nfs_client *clp = data->client; in nfs4_renew_done()
112 static int nfs4_proc_async_renew(struct nfs_client *clp, const struct cred *cred, unsigned renew_fl… in nfs4_proc_async_renew()
136 static int nfs4_proc_renew(struct nfs_client *clp, const struct cred *cred) in nfs4_proc_renew()
173 struct nfs_client *clp = server->nfs_client; in _nfs40_proc_get_locations()
223 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in _nfs40_proc_fsid_present()
269 nfs4_setup_sequence(server->nfs_client, &data->args.seq_args, in nfs4_release_lockowner_prepare()
271 data->args.lock_owner.clientid = server->nfs_client->cl_clientid; in nfs4_release_lockowner_prepare()
[all …]
H A Ddelegation.c101 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation()
354 struct nfs_client *clp) in nfs_detach_delegations_locked()
378 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation()
439 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation()
581 err = nfs4_wait_clnt_recover(server->nfs_client); in nfs_end_delegation_return()
592 set_bit(NFS4CLNT_DELEGRETURN_DELAYED, &server->nfs_client->cl_state); in nfs_end_delegation_return()
685 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_delegations_return_from_lru()
686 nfs4_schedule_state_manager(server->nfs_client); in nfs_delegations_return_from_lru()
722 static bool nfs_client_clear_delayed_delegations(struct nfs_client *clp) in nfs_client_clear_delayed_delegations()
752 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations()
[all …]
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 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 Dnfs4idmap.h44 struct nfs_client;
51 int nfs_idmap_new(struct nfs_client *);
52 void nfs_idmap_delete(struct nfs_client *);
H A Dnfs4proc.c102 static struct rpc_task *_nfs41_proc_sequence(struct nfs_client *clp,
414 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid()
506 struct nfs_client *clp = server->nfs_client; in nfs4_do_handle_exception()
612 server->nfs_client->cl_hostname); in nfs4_do_handle_exception()
642 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception()
675 struct nfs_client *clp = server->nfs_client; in nfs4_async_handle_exception()
747 static bool _nfs4_is_integrity_protected(struct nfs_client *clp) in _nfs4_is_integrity_protected()
753 void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease()
763 struct nfs_client *clp = server->nfs_client; in renew_lease()
769 void nfs4_init_sequence(struct nfs_client *clp, in nfs4_init_sequence()
[all …]
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,
348 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp);
354 void pnfs_layout_return_unused_byclid(struct nfs_client *clp,
356 int pnfs_layout_handle_reboot(struct nfs_client *clp);
370 const struct nfs_client *nfs_client; member
382 void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const s…
389 void nfs4_deviceid_purge_client(const struct nfs_client *);
[all …]
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 Dlocalio.c66 static inline bool nfs_client_is_local(const struct nfs_client *clp) in nfs_client_is_local()
71 bool nfs_server_is_local(const struct nfs_client *clp) in nfs_server_is_local()
136 static struct rpc_clnt *nfs_init_localioclient(struct nfs_client *clp) in nfs_init_localioclient()
150 static bool nfs_server_uuid_is_local(struct nfs_client *clp) in nfs_server_uuid_is_local()
183 static void nfs_local_probe(struct nfs_client *clp) in nfs_local_probe()
204 struct nfs_client *clp = in nfs_local_probe_async_work()
205 container_of(work, struct nfs_client, cl_local_probe_work); in nfs_local_probe_async_work()
213 void nfs_local_probe_async(struct nfs_client *clp) in nfs_local_probe_async()
238 __nfs_local_open_fh(struct nfs_client *clp, const struct cred *cred, in __nfs_local_open_fh()
271 nfs_local_open_fh(struct nfs_client *clp, const struct cred *cred, in nfs_local_open_fh()
[all …]
H A Dcallback_proc.c134 static struct inode *nfs_layout_find_inode_by_stateid(struct nfs_client *clp, in nfs_layout_find_inode_by_stateid()
170 static struct inode *nfs_layout_find_inode_by_fh(struct nfs_client *clp, in nfs_layout_find_inode_by_fh()
201 static struct inode *nfs_layout_find_inode(struct nfs_client *clp, in nfs_layout_find_inode()
252 static u32 initiate_file_draining(struct nfs_client *clp, in initiate_file_draining()
323 static u32 initiate_bulk_draining(struct nfs_client *clp, in initiate_bulk_draining()
338 static u32 do_callback_layoutrecall(struct nfs_client *clp, in do_callback_layoutrecall()
358 static void pnfs_recall_all_layouts(struct nfs_client *clp, in pnfs_recall_all_layouts()
457 static int referring_call_exists(struct nfs_client *clp, in referring_call_exists()
509 struct nfs_client *clp; in nfs4_callback_sequence()
H A Dnfs42proc.c29 struct nfs_client *clp = (NFS_SERVER(file_inode(filep)))->nfs_client; in nfs42_set_netaddr()
224 spin_lock(&dst_server->nfs_client->cl_lock); in nfs4_copy_dequeue_callback()
226 spin_unlock(&dst_server->nfs_client->cl_lock); in nfs4_copy_dequeue_callback()
228 spin_lock(&src_server->nfs_client->cl_lock); in nfs4_copy_dequeue_callback()
230 spin_unlock(&src_server->nfs_client->cl_lock); in nfs4_copy_dequeue_callback()
245 struct nfs_client *clp = dst_server->nfs_client; in handle_async_copy()
254 spin_lock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
256 &dst_server->nfs_client->pending_cb_stateids, in handle_async_copy()
266 spin_unlock(&dst_server->nfs_client->cl_lock); in handle_async_copy()
278 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()
H A Dpnfs_nfs.c780 static struct nfs_client *(*get_v3_ds_connect)(
811 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v3_ds_connect()
812 struct nfs_client *mds_clp = mds_srv->nfs_client; in _nfs4_pnfs_v3_ds_connect()
886 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v4_ds_connect()
887 struct nfs_client *mds_clp = mds_srv->nfs_client; in _nfs4_pnfs_v4_ds_connect()
979 mds_srv->nfs_client->cl_lease_time); in _nfs4_pnfs_v4_ds_connect()
H A Dnamespace.c151 struct nfs_client *client = server->nfs_client; in nfs_d_automount()
325 err = server->nfs_client->rpc_ops->lookup(d_inode(parent), dentry, &dentry->d_name, in nfs_submount()
H A Dexport.c104 rpc_ops = NFS_SB(sb)->nfs_client->rpc_ops; in nfs_fh_to_dentry()
132 struct nfs_rpc_ops const *ops = server->nfs_client->rpc_ops; in nfs_get_parent()
H A Dpnfs.c114 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver()
115 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver()
170 if (!(server->nfs_client->cl_exchange_flags & in set_pnfs_layoutdriver()
173 __func__, server->nfs_client->cl_exchange_flags); in set_pnfs_layoutdriver()
206 atomic_inc(&server->nfs_client->cl_mds_count); in set_pnfs_layoutdriver()
284 struct nfs_client *clp = server->nfs_client; in pnfs_free_layout_hdr()
845 pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, in pnfs_layout_bulk_destroy_byserver_locked()
920 int pnfs_layout_destroy_byfsid(struct nfs_client *clp, struct nfs_fsid *fsid, in pnfs_layout_destroy_byfsid()
943 static void pnfs_layout_build_destroy_list_byclient(struct nfs_client *clp, in pnfs_layout_build_destroy_list_byclient()
960 static int pnfs_layout_do_destroy_byclid(struct nfs_client *clp, in pnfs_layout_do_destroy_byclid()
[all …]
H A Dnfs4session.c557 struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp) in nfs4_alloc_session()
605 static int nfs41_check_session_ready(struct nfs_client *clp) in nfs41_check_session_ready()
620 int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session()
629 int nfs4_init_ds_session(struct nfs_client *clp, unsigned long lease_time) in nfs4_init_ds_session()
/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()
/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.

12