| /linux/fs/nfs/ |
| H A D | nfs4client.c | 30 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 D | nfs40client.c | 21 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 D | nfs4state.c | 71 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 D | client.c | 148 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() 224 void nfs_cb_idr_remove(struct nfs_client *clp) in nfs_cb_idr_remove() 244 static void nfs_cb_idr_remove_locked(struct nfs_client *clp) in nfs_cb_idr_remove_locked() 257 void nfs_free_client(struct nfs_client *clp) in nfs_free_client() 276 void nfs_put_client(struct nfs_client *clp) in nfs_put_client() 301 static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *data) in nfs_match_client() 303 struct nfs_client *clp; in nfs_match_client() 373 bool nfs_client_init_is_complete(const struct nfs_client *clp) in nfs_client_init_is_complete() [all …]
|
| H A D | pnfs_dev.c | 80 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 D | nfs40proc.c | 15 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 D | internal.h | 214 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 void nfs_cb_idr_remove(struct nfs_client *clp); 229 extern struct nfs_client *nfs4_find_client_ident(struct net *, int); 230 extern struct nfs_client * 245 extern bool nfs_client_init_is_complete(const struct nfs_client *clp); 246 extern int nfs_client_init_status(const struct nfs_client *clp); [all …]
|
| H A D | nfs4session.h | 75 struct nfs_client *clp; 109 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 *clp, unsigned long lease_time, 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()
|
| H A D | delegation.c | 101 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation() 361 struct nfs_client *clp) in nfs_detach_delegations_locked() 385 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation() 446 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation() 598 err = nfs4_wait_clnt_recover(server->nfs_client); in nfs_end_delegation_return() 609 set_bit(NFS4CLNT_DELEGRETURN_DELAYED, &server->nfs_client->cl_state); in nfs_end_delegation_return() 702 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_delegations_return_from_lru() 703 nfs4_schedule_state_manager(server->nfs_client); in nfs_delegations_return_from_lru() 739 static bool nfs_client_clear_delayed_delegations(struct nfs_client *clp) in nfs_client_clear_delayed_delegations() 769 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations() [all …]
|
| H A D | nfs42.h | 37 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 D | sysfs.c | 206 netns->nfs_client = clp; in nfs_netns_sysfs_setup() 213 struct nfs_netns_client *clp = netns->nfs_client; in nfs_netns_sysfs_destroy() 221 netns->nfs_client = NULL; in nfs_netns_sysfs_destroy() 240 static void shutdown_nfs_client(struct nfs_client *clp) in shutdown_nfs_client() 293 shutdown_nfs_client(server->nfs_client); in shutdown_store() 305 struct nfs41_impl_id *impl_id = server->nfs_client->cl_implid; in implid_domain_show() 320 struct nfs41_impl_id *impl_id = server->nfs_client->cl_implid; in implid_name_show() 359 kobj)->nfs_client->cl_net); in nfs_netns_server_namespace() 374 if (!server->nfs_client->cl_implid) in nfs_sysfs_add_nfsv41_server() 402 bool localio = nfs_server_is_local(server->nfs_client); in localio_show()
|
| H A D | nfs4idmap.h | 44 struct nfs_client; 51 int nfs_idmap_new(struct nfs_client *); 52 void nfs_idmap_delete(struct nfs_client *);
|
| H A D | nfs3client.c | 85 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 D | pnfs.h | 64 struct nfs_client *ds_clp; 284 void pnfs_destroy_all_layouts(struct nfs_client *); 285 int pnfs_layout_destroy_byfsid(struct nfs_client *clp, struct nfs_fsid *fsid, 287 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 D | nfs4proc.c | 102 static struct rpc_task *_nfs41_proc_sequence(struct nfs_client *clp, 428 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid() 520 struct nfs_client *clp = server->nfs_client; in nfs4_do_handle_exception() 626 server->nfs_client->cl_hostname); in nfs4_do_handle_exception() 656 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception() 689 struct nfs_client *clp = server->nfs_client; in nfs4_async_handle_exception() 761 static bool _nfs4_is_integrity_protected(struct nfs_client *clp) in _nfs4_is_integrity_protected() 767 void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) in do_renew_lease() 777 struct nfs_client *clp = server->nfs_client; in renew_lease() 783 void nfs4_init_sequence(struct nfs_client *clp, in nfs4_init_sequence() [all …]
|
| H A D | localio.c | 65 static inline bool nfs_client_is_local(const struct nfs_client *clp) in nfs_client_is_local() 70 bool nfs_server_is_local(const struct nfs_client *clp) in nfs_server_is_local() 135 static struct rpc_clnt *nfs_init_localioclient(struct nfs_client *clp) in nfs_init_localioclient() 149 static bool nfs_server_uuid_is_local(struct nfs_client *clp) in nfs_server_uuid_is_local() 182 static void nfs_local_probe(struct nfs_client *clp) in nfs_local_probe() 203 struct nfs_client *clp = in nfs_local_probe_async_work() 204 container_of(work, struct nfs_client, cl_local_probe_work); in nfs_local_probe_async_work() 212 void nfs_local_probe_async(struct nfs_client *clp) in nfs_local_probe_async() 237 __nfs_local_open_fh(struct nfs_client *clp, const struct cred *cred, in __nfs_local_open_fh() 270 nfs_local_open_fh(struct nfs_client *clp, const struct cred *cred, in nfs_local_open_fh() [all …]
|
| H A D | callback_proc.c | 134 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() 325 static u32 initiate_bulk_draining(struct nfs_client *clp, in initiate_bulk_draining() 340 static u32 do_callback_layoutrecall(struct nfs_client *clp, in do_callback_layoutrecall() 360 static void pnfs_recall_all_layouts(struct nfs_client *clp, in pnfs_recall_all_layouts() 459 static int referring_call_exists(struct nfs_client *clp, in referring_call_exists() 511 struct nfs_client *clp; in nfs4_callback_sequence()
|
| H A D | nfs4idmap.c | 442 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 D | pnfs_nfs.c | 784 static struct nfs_client *(*get_v3_ds_connect)( 815 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v3_ds_connect() 816 struct nfs_client *mds_clp = mds_srv->nfs_client; in _nfs4_pnfs_v3_ds_connect() 891 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v4_ds_connect() 892 struct nfs_client *mds_clp = mds_srv->nfs_client; in _nfs4_pnfs_v4_ds_connect() 985 mds_srv->nfs_client->cl_lease_time, in _nfs4_pnfs_v4_ds_connect()
|
| H A D | pnfs.c | 114 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() 846 pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, in pnfs_layout_bulk_destroy_byserver_locked() 921 int pnfs_layout_destroy_byfsid(struct nfs_client *clp, struct nfs_fsid *fsid, in pnfs_layout_destroy_byfsid() 944 static void pnfs_layout_build_destroy_list_byclient(struct nfs_client *clp, in pnfs_layout_build_destroy_list_byclient() 961 static int pnfs_layout_do_destroy_byclid(struct nfs_client *clp, in pnfs_layout_do_destroy_byclid() [all …]
|
| H A D | nfs4session.c | 557 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 D | nfslocalio.h | 19 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 D | nfs_xdr.h | 357 struct nfs_client *clp; 1214 struct nfs_client *sc_clnt; 1365 struct nfs_client *client; 1390 struct nfs_client *client; 1414 struct nfs_client *client; 1693 struct nfs_client *ds_clp; /* pNFS data server */ 1733 struct nfs_client *ds_clp; /* pNFS data server */ 1775 struct nfs_client; 1859 struct nfs_client *(*alloc_client) (const struct nfs_client_initdata *); 1860 struct nfs_client *(*init_client) (struct nfs_client *, [all …]
|
| /linux/fs/nfs_common/ |
| H A D | nfslocalio.c | 141 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 D | pnfs.rst | 25 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.
|