Home
last modified time | relevance | path

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

12

/fs/nfs/
Dnfs4_fs.h56 int (*init_client)(struct nfs_client *);
57 void (*shutdown_client)(struct nfs_client *);
217 int (*establish_clid)(struct nfs_client *, const struct cred *);
218 int (*reclaim_complete)(struct nfs_client *, const struct cred *);
219 int (*detect_trunking)(struct nfs_client *, struct nfs_client **,
249 struct nfs_client *clp;
254 int (*sched_state_renewal)(struct nfs_client *, const struct cred *, unsigned);
255 const struct cred * (*get_state_renewal_cred)(struct nfs_client *);
256 int (*renew_lease)(struct nfs_client *, const struct cred *);
291 extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, const struct cred *, str…
[all …]
Dnfs4client.c28 static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion) in nfs_get_cb_ident_idr()
60 nfs4_find_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor) in nfs4_find_ds_client()
77 nfs4_add_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor, in nfs4_add_ds_client()
97 nfs4_alloc_ds_server(struct nfs_client *ds_clp, rpc_authflavor_t flavor) in nfs4_alloc_ds_server()
132 nfs4_find_or_create_ds_client(struct nfs_client *ds_clp, struct inode *inode) in nfs4_find_or_create_ds_client()
152 nfs4_shutdown_ds_clients(struct nfs_client *clp) in nfs4_shutdown_ds_clients()
166 nfs4_cleanup_callback(struct nfs_client *clp) in nfs4_cleanup_callback()
178 void nfs41_shutdown_client(struct nfs_client *clp) in nfs41_shutdown_client()
190 void nfs40_shutdown_client(struct nfs_client *clp) in nfs40_shutdown_client()
198 struct nfs_client *nfs4_alloc_client(const struct nfs_client_initdata *cl_init) in nfs4_alloc_client()
[all …]
Ddelegation.h48 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle);
50 void nfs_expire_all_delegations(struct nfs_client *clp);
51 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags);
52 void nfs_expire_unreferenced_delegations(struct nfs_client *clp);
53 int nfs_client_return_marked_delegations(struct nfs_client *clp);
54 int nfs_delegations_present(struct nfs_client *clp);
57 void nfs_delegation_mark_reclaim(struct nfs_client *clp);
58 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
60 void nfs_mark_test_expired_all_delegations(struct nfs_client *clp);
61 void nfs_test_expired_all_delegations(struct nfs_client *clp);
[all …]
Dnfs4state.c90 static int nfs4_setup_state_renewal(struct nfs_client *clp) in nfs4_setup_state_renewal()
111 int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs4_init_clientid()
156 int nfs40_discover_server_trunking(struct nfs_client *clp, in nfs40_discover_server_trunking()
157 struct nfs_client **result, in nfs40_discover_server_trunking()
192 const struct cred *nfs4_get_machine_cred(struct nfs_client *clp) in nfs4_get_machine_cred()
197 static void nfs4_root_machine_cred(struct nfs_client *clp) in nfs4_root_machine_cred()
231 const struct cred *nfs4_get_renew_cred(struct nfs_client *clp) in nfs4_get_renew_cred()
264 static void nfs4_end_drain_session(struct nfs_client *clp) in nfs4_end_drain_session()
292 static int nfs4_begin_drain_session(struct nfs_client *clp) in nfs4_begin_drain_session()
310 static void nfs41_finish_session_reset(struct nfs_client *clp) in nfs41_finish_session_reset()
[all …]
Dnfs4session.h74 struct nfs_client *clp;
108 static inline struct nfs4_session *nfs4_get_session(const struct nfs_client *clp) in nfs4_get_session()
122 extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
124 extern int nfs4_init_session(struct nfs_client *clp);
125 extern int nfs4_init_ds_session(struct nfs_client *, unsigned long);
130 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session()
137 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session()
162 static inline int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session()
170 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session()
175 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()
205 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
223 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked()
236 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()
334 bool nfs_client_init_is_complete(const struct nfs_client *clp) in nfs_client_init_is_complete()
346 int nfs_client_init_status(const struct nfs_client *clp) in nfs_client_init_status()
[all …]
Ddelegation.c278 struct nfs_client *clp) in nfs_abort_delegation_return()
291 struct nfs_client *clp) in nfs_detach_delegation_locked()
313 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation()
361 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation()
437 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in nfs_end_delegation_return()
499 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations()
636 if (!nfs4_has_session(NFS_SERVER(inode)->nfs_client) || in nfs4_inode_make_writeable()
646 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_if_closed_delegation()
653 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation()
668 static void nfs_client_mark_return_all_delegations(struct nfs_client *clp) in nfs_client_mark_return_all_delegations()
[all …]
Dpnfs_dev.c78 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid()
84 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
110 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; in nfs4_get_device_info()
177 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, in __nfs4_find_get_deviceid()
226 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid()
254 d->nfs_client = server->nfs_client; in nfs4_init_deviceid_node()
277 nfs4_delete_deviceid(d->ld, d->nfs_client, &d->deviceid); in nfs4_put_deviceid_node()
324 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client()
332 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client()
351 nfs4_deviceid_purge_client(const struct nfs_client *clp) in nfs4_deviceid_purge_client()
[all …]
Dinternal.h155 extern struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *);
156 int nfs_create_rpc_client(struct nfs_client *, const struct nfs_client_initdata *, rpc_authflavor_t…
157 struct nfs_client *nfs_get_client(const struct nfs_client_initdata *);
167 extern void nfs_put_client(struct nfs_client *);
168 extern void nfs_free_client(struct nfs_client *);
169 extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
170 extern struct nfs_client *
188 extern bool nfs_client_init_is_complete(const struct nfs_client *clp);
189 extern int nfs_client_init_status(const struct nfs_client *clp);
190 extern int nfs_wait_client_init_complete(const struct nfs_client *clp);
[all …]
Dfscache.h23 struct nfs_client *nfs_client; /* the server */ member
84 extern void nfs_fscache_get_client_cookie(struct nfs_client *);
85 extern void nfs_fscache_release_client_cookie(struct nfs_client *);
194 static inline void nfs_fscache_get_client_cookie(struct nfs_client *clp) {} in nfs_fscache_get_client_cookie()
195 static inline void nfs_fscache_release_client_cookie(struct nfs_client *clp) {} in nfs_fscache_release_client_cookie()
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()
143 void nfs4_set_lease_period(struct nfs_client *clp, in nfs4_set_lease_period()
Dfscache.c49 void nfs_fscache_get_client_cookie(struct nfs_client *clp) in nfs_fscache_get_client_cookie()
93 void nfs_fscache_release_client_cookie(struct nfs_client *clp) in nfs_fscache_release_client_cookie()
130 key->nfs_client = nfss->nfs_client; in nfs_fscache_get_super_cookie()
152 if (key->nfs_client < xkey->nfs_client) in nfs_fscache_get_super_cookie()
154 if (key->nfs_client > xkey->nfs_client) in nfs_fscache_get_super_cookie()
187 nfss->fscache = fscache_acquire_cookie(nfss->nfs_client->fscache, in nfs_fscache_get_super_cookie()
244 if (NFS_SERVER(&nfsi->vfs_inode)->nfs_client->rpc_ops->version == 4) in nfs_fscache_init_inode()
Dnfs3client.c80 struct nfs_client *nfs3_set_ds_client(struct nfs_server *mds_srv, in nfs3_set_ds_client()
85 struct nfs_client *mds_clp = mds_srv->nfs_client; in nfs3_set_ds_client()
97 struct nfs_client *clp; in nfs3_set_ds_client()
Dnfs4idmap.h44 struct nfs_client;
51 int nfs_idmap_new(struct nfs_client *);
52 void nfs_idmap_delete(struct nfs_client *);
Dnfs4proc.c101 static struct rpc_task *_nfs41_proc_sequence(struct nfs_client *clp,
366 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid()
453 struct nfs_client *clp = server->nfs_client; in nfs4_do_handle_exception()
559 server->nfs_client->cl_hostname); in nfs4_do_handle_exception()
574 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception()
600 struct nfs_client *clp = server->nfs_client; in nfs4_async_handle_exception()
656 static bool _nfs4_is_integrity_protected(struct nfs_client *clp) in _nfs4_is_integrity_protected()
662 static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease()
672 struct nfs_client *clp = server->nfs_client; in renew_lease()
782 struct nfs_client *clp; in nfs41_sequence_process()
[all …]
Dsuper.c455 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()
649 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options()
734 rpc_peeraddr2str(nfss->nfs_client->cl_rpcclient, in nfs_show_options()
745 struct nfs_client *clp = server->nfs_client; in show_lease()
756 if (nfs4_has_session(server->nfs_client)) in show_sessions()
776 if (nfss->nfs_client && nfss->nfs_client->cl_implid) { in show_implementation_id()
777 struct nfs41_impl_id *impl_id = nfss->nfs_client->cl_implid; in show_implementation_id()
853 if (nfss->nfs_client->rpc_ops->version == 4) { in nfs_show_stats()
2254 data->version != nfss->nfs_client->rpc_ops->version || in nfs_compare_remount_data()
[all …]
Dcallback_proc.c124 static struct inode *nfs_layout_find_inode_by_stateid(struct nfs_client *clp, in nfs_layout_find_inode_by_stateid()
160 static struct inode *nfs_layout_find_inode_by_fh(struct nfs_client *clp, in nfs_layout_find_inode_by_fh()
193 static struct inode *nfs_layout_find_inode(struct nfs_client *clp, in nfs_layout_find_inode()
248 static u32 initiate_file_draining(struct nfs_client *clp, in initiate_file_draining()
317 static u32 initiate_bulk_draining(struct nfs_client *clp, in initiate_bulk_draining()
331 static u32 do_callback_layoutrecall(struct nfs_client *clp, in do_callback_layoutrecall()
350 static void pnfs_recall_all_layouts(struct nfs_client *clp) in pnfs_recall_all_layouts()
367 struct nfs_client *clp = cps->clp; in nfs4_callback_devicenotify()
457 static int referring_call_exists(struct nfs_client *clp, in referring_call_exists()
507 struct nfs_client *clp; in nfs4_callback_sequence()
Dpnfs.h60 struct nfs_client *ds_clp;
258 void pnfs_destroy_all_layouts(struct nfs_client *);
259 int pnfs_destroy_layouts_byfsid(struct nfs_client *clp,
262 int pnfs_destroy_layouts_byclid(struct nfs_client *clp,
323 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp);
341 const struct nfs_client *nfs_client; member
353 void nfs4_delete_deviceid(const struct pnfs_layoutdriver_type *, const struct nfs_client *, const s…
360 void nfs4_deviceid_purge_client(const struct nfs_client *);
646 static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
Dsysfs.c172 netns->nfs_client = clp; in nfs_netns_sysfs_setup()
179 struct nfs_netns_client *clp = netns->nfs_client; in nfs_netns_sysfs_destroy()
185 netns->nfs_client = NULL; in nfs_netns_sysfs_destroy()
Dnfs42proc.c149 spin_lock(&server->nfs_client->cl_lock); in handle_async_copy()
150 list_for_each_entry(tmp_copy, &server->nfs_client->pending_cb_stateids, in handle_async_copy()
160 spin_unlock(&server->nfs_client->cl_lock); in handle_async_copy()
171 spin_unlock(&server->nfs_client->cl_lock); in handle_async_copy()
174 spin_lock(&server->nfs_client->cl_lock); in handle_async_copy()
176 spin_unlock(&server->nfs_client->cl_lock); in handle_async_copy()
389 nfs4_setup_sequence(data->seq_server->nfs_client, in nfs42_offload_cancel_prepare()
551 nfs4_setup_sequence(server->nfs_client, &data->args.seq_args, in nfs42_layoutstat_prepare()
719 nfs4_setup_sequence(server->nfs_client, &data->args.seq_args, in nfs42_layouterror_prepare()
Dnfs4idmap.c454 nfs_idmap_new(struct nfs_client *clp) in nfs_idmap_new()
495 nfs_idmap_delete(struct nfs_client *clp) in nfs_idmap_delete()
744 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_name_to_uid()
761 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_group_to_gid()
778 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_uid_to_name()
792 struct idmap *idmap = server->nfs_client->cl_idmap; in nfs_map_gid_to_group()
Dcallback.h44 struct nfs_client *clp;
199 extern int check_gss_callback_principal(struct nfs_client *, struct svc_rqst *);
Dexport.c104 rpc_ops = NFS_SB(sb)->nfs_client->rpc_ops; in nfs_fh_to_dentry()
135 struct nfs_rpc_ops const *ops = server->nfs_client->rpc_ops; in nfs_get_parent()
Dpnfs.c102 if (atomic_dec_and_test(&nfss->nfs_client->cl_mds_count)) in unset_pnfs_layoutdriver()
103 nfs4_deviceid_purge_client(nfss->nfs_client); in unset_pnfs_layoutdriver()
158 if (!(server->nfs_client->cl_exchange_flags & in set_pnfs_layoutdriver()
161 __func__, server->nfs_client->cl_exchange_flags); in set_pnfs_layoutdriver()
194 atomic_inc(&server->nfs_client->cl_mds_count); in set_pnfs_layoutdriver()
272 struct nfs_client *clp = server->nfs_client; in pnfs_free_layout_hdr()
768 pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, in pnfs_layout_bulk_destroy_byserver_locked()
843 pnfs_destroy_layouts_byfsid(struct nfs_client *clp, in pnfs_destroy_layouts_byfsid()
870 pnfs_destroy_layouts_byclid(struct nfs_client *clp, in pnfs_destroy_layouts_byclid()
898 pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts()
[all …]
Dnfs4session.c555 struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp) in nfs4_alloc_session()
603 static int nfs41_check_session_ready(struct nfs_client *clp) in nfs41_check_session_ready()
618 int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session()
627 int nfs4_init_ds_session(struct nfs_client *clp, unsigned long lease_time) in nfs4_init_ds_session()

12