Home
last modified time | relevance | path

Searched refs:clp (Results 1 – 53 of 53) sorted by relevance

/linux-4.4.14/fs/nfs/
Dnfs4state.c71 int nfs4_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_init_clientid() argument
74 .clientid = clp->cl_clientid, in nfs4_init_clientid()
75 .confirm = clp->cl_confirm, in nfs4_init_clientid()
79 struct nfs_net *nn = net_generic(clp->cl_net, nfs_net_id); in nfs4_init_clientid()
81 if (test_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state)) in nfs4_init_clientid()
84 if (clp->cl_addr.ss_family == AF_INET6) in nfs4_init_clientid()
87 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs4_init_clientid()
90 clp->cl_clientid = clid.clientid; in nfs4_init_clientid()
91 clp->cl_confirm = clid.confirm; in nfs4_init_clientid()
92 set_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state); in nfs4_init_clientid()
[all …]
Dnfs4renewd.c58 struct nfs_client *clp = in nfs4_renew_state() local
65 ops = clp->cl_mvops->state_renewal_ops; in nfs4_renew_state()
68 if (test_bit(NFS_CS_STOP_RENEW, &clp->cl_res_state)) in nfs4_renew_state()
71 spin_lock(&clp->cl_lock); in nfs4_renew_state()
72 lease = clp->cl_lease_time; in nfs4_renew_state()
73 last = clp->cl_last_renewal; in nfs4_renew_state()
78 if (nfs_delegations_present(clp)) in nfs4_renew_state()
82 cred = ops->get_state_renewal_cred_locked(clp); in nfs4_renew_state()
83 spin_unlock(&clp->cl_lock); in nfs4_renew_state()
86 set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state); in nfs4_renew_state()
[all …]
Dnfs4client.c27 static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion) in nfs_get_cb_ident_idr() argument
30 struct nfs_net *nn = net_generic(clp->cl_net, nfs_net_id); in nfs_get_cb_ident_idr()
32 if (clp->rpc_ops->version != 4 || minorversion != 0) in nfs_get_cb_ident_idr()
36 ret = idr_alloc(&nn->cb_ident_idr, clp, 1, 0, GFP_NOWAIT); in nfs_get_cb_ident_idr()
38 clp->cl_cb_ident = ret; in nfs_get_cb_ident_idr()
145 nfs4_shutdown_ds_clients(struct nfs_client *clp) in nfs4_shutdown_ds_clients() argument
150 while (!list_empty(&clp->cl_ds_clients)) { in nfs4_shutdown_ds_clients()
151 dss = list_entry(clp->cl_ds_clients.next, in nfs4_shutdown_ds_clients()
159 void nfs41_shutdown_client(struct nfs_client *clp) in nfs41_shutdown_client() argument
161 if (nfs4_has_session(clp)) { in nfs41_shutdown_client()
[all …]
Dclient.c153 struct nfs_client *clp; in nfs_alloc_client() local
157 if ((clp = kzalloc(sizeof(*clp), GFP_KERNEL)) == NULL) in nfs_alloc_client()
160 clp->cl_nfs_mod = cl_init->nfs_mod; in nfs_alloc_client()
161 if (!try_module_get(clp->cl_nfs_mod->owner)) in nfs_alloc_client()
164 clp->rpc_ops = clp->cl_nfs_mod->rpc_ops; in nfs_alloc_client()
166 atomic_set(&clp->cl_count, 1); in nfs_alloc_client()
167 clp->cl_cons_state = NFS_CS_INITING; in nfs_alloc_client()
169 memcpy(&clp->cl_addr, cl_init->addr, cl_init->addrlen); in nfs_alloc_client()
170 clp->cl_addrlen = cl_init->addrlen; in nfs_alloc_client()
174 clp->cl_hostname = kstrdup(cl_init->hostname, GFP_KERNEL); in nfs_alloc_client()
[all …]
Dcallback_proc.c31 if (!cps->clp) /* Always set for v4.0. Set in cb_sequence for v4.1 */ in nfs4_callback_getattr()
38 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR)); in nfs4_callback_getattr()
40 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_getattr()
42 trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL, in nfs4_callback_getattr()
64 trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status)); in nfs4_callback_getattr()
78 if (!cps->clp) /* Always set for v4.0. Set in cb_sequence for v4.1 */ in nfs4_callback_recall()
82 rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR)); in nfs4_callback_recall()
85 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_recall()
117 static struct pnfs_layout_hdr * get_layout_by_fh_locked(struct nfs_client *clp, in get_layout_by_fh_locked() argument
124 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in get_layout_by_fh_locked()
[all …]
Dnfs4_fs.h243 extern int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred);
244 extern int nfs4_destroy_clientid(struct nfs_client *clp);
275 extern int nfs4_proc_get_lease_time(struct nfs_client *clp,
281 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument
283 return (clp->cl_exchange_flags & EXCHGID4_FLAG_MASK_PNFS) == in is_ds_only_client()
288 is_ds_client(struct nfs_client *clp) in is_ds_client() argument
290 return clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_DS; in is_ds_client()
294 _nfs4_state_protect(struct nfs_client *clp, unsigned long sp4_mode, in _nfs4_state_protect() argument
300 if (test_bit(sp4_mode, &clp->cl_sp4_flags)) { in _nfs4_state_protect()
301 spin_lock(&clp->cl_lock); in _nfs4_state_protect()
[all …]
Ddelegation.c252 struct nfs_client *clp) in nfs_abort_delegation_return() argument
259 set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state); in nfs_abort_delegation_return()
265 struct nfs_client *clp) in nfs_detach_delegation_locked() argument
269 lockdep_is_held(&clp->cl_lock)); in nfs_detach_delegation_locked()
287 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation() local
289 spin_lock(&clp->cl_lock); in nfs_detach_delegation()
290 delegation = nfs_detach_delegation_locked(nfsi, delegation, clp); in nfs_detach_delegation()
291 spin_unlock(&clp->cl_lock); in nfs_detach_delegation()
330 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation() local
348 spin_lock(&clp->cl_lock); in nfs_inode_set_delegation()
[all …]
Dnfs4session.h68 struct nfs_client *clp; member
100 extern struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp);
102 extern int nfs4_init_session(struct nfs_client *clp);
108 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session() argument
110 if (clp->cl_session) in nfs4_has_session()
115 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session() argument
117 if (nfs4_has_session(clp)) in nfs4_has_persistent_session()
118 return (clp->cl_session->flags & SESSION4_PERSIST); in nfs4_has_persistent_session()
140 static inline int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session() argument
148 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session() argument
[all …]
Ddelegation.h43 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle);
45 void nfs_expire_all_delegations(struct nfs_client *clp);
46 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags);
47 void nfs_expire_unreferenced_delegations(struct nfs_client *clp);
48 int nfs_client_return_marked_delegations(struct nfs_client *clp);
49 int nfs_delegations_present(struct nfs_client *clp);
52 void nfs_delegation_mark_reclaim(struct nfs_client *clp);
53 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
Dnfs4session.c466 struct nfs4_session *nfs4_alloc_session(struct nfs_client *clp) in nfs4_alloc_session() argument
478 session->clp = clp; in nfs4_alloc_session()
493 cred = nfs4_get_clid_cred(session->clp); in nfs4_destroy_session()
499 xprt = rcu_dereference(session->clp->cl_rpcclient->cl_xprt); in nfs4_destroy_session()
515 static int nfs41_check_session_ready(struct nfs_client *clp) in nfs41_check_session_ready() argument
519 if (clp->cl_cons_state == NFS_CS_SESSION_INITING) { in nfs41_check_session_ready()
520 ret = nfs4_client_recover_expired_lease(clp); in nfs41_check_session_ready()
524 if (clp->cl_cons_state < NFS_CS_READY) in nfs41_check_session_ready()
530 int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session() argument
532 if (!nfs4_has_session(clp)) in nfs4_init_session()
[all …]
Dpnfs_dev.c79 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument
85 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
227 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid() argument
233 d = _lookup_deviceid(ld, clp, id, nfs4_deviceid_hash(id)); in nfs4_delete_deviceid()
312 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client() argument
320 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client()
339 nfs4_deviceid_purge_client(const struct nfs_client *clp) in nfs4_deviceid_purge_client() argument
343 if (!(clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_MDS)) in nfs4_deviceid_purge_client()
346 _deviceid_purge_client(clp, h); in nfs4_deviceid_purge_client()
353 nfs4_deviceid_mark_client_invalid(struct nfs_client *clp) in nfs4_deviceid_mark_client_invalid() argument
[all …]
Dnfs4proc.c350 struct nfs_client *clp = server->nfs_client; in nfs4_do_handle_exception() local
382 nfs4_schedule_lease_recovery(clp); in nfs4_do_handle_exception()
390 nfs4_schedule_lease_moved_recovery(clp); in nfs4_do_handle_exception()
402 nfs4_schedule_session_recovery(clp->cl_session, errorcode); in nfs4_do_handle_exception()
448 struct nfs_client *clp = server->nfs_client; in nfs4_handle_exception() local
457 ret = nfs4_wait_clnt_recover(clp); in nfs4_handle_exception()
473 struct nfs_client *clp = server->nfs_client; in nfs4_async_handle_exception() local
482 rpc_sleep_on(&clp->cl_rpcwaitq, task, NULL); in nfs4_async_handle_exception()
483 if (test_bit(NFS4CLNT_MANAGER_RUNNING, &clp->cl_state) == 0) in nfs4_async_handle_exception()
484 rpc_wake_up_queued_task(&clp->cl_rpcwaitq, task); in nfs4_async_handle_exception()
[all …]
Dfscache-index.c71 const struct nfs_client *clp = cookie_netfs_data; in nfs_server_get_key() local
72 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &clp->cl_addr; in nfs_server_get_key()
73 const struct sockaddr_in *sin = (struct sockaddr_in *) &clp->cl_addr; in nfs_server_get_key()
78 key->nfsversion = clp->rpc_ops->version; in nfs_server_get_key()
79 key->family = clp->cl_addr.ss_family; in nfs_server_get_key()
81 switch (clp->cl_addr.ss_family) { in nfs_server_get_key()
96 clp->cl_addr.ss_family); in nfs_server_get_key()
Dfscache.c37 void nfs_fscache_get_client_cookie(struct nfs_client *clp) in nfs_fscache_get_client_cookie() argument
40 clp->fscache = fscache_acquire_cookie(nfs_fscache_netfs.primary_index, in nfs_fscache_get_client_cookie()
42 clp, true); in nfs_fscache_get_client_cookie()
44 clp, clp->fscache); in nfs_fscache_get_client_cookie()
50 void nfs_fscache_release_client_cookie(struct nfs_client *clp) in nfs_fscache_release_client_cookie() argument
53 clp, clp->fscache); in nfs_fscache_release_client_cookie()
55 fscache_relinquish_cookie(clp->fscache, 0); in nfs_fscache_release_client_cookie()
56 clp->fscache = NULL; in nfs_fscache_release_client_cookie()
Dpnfs_nfs.c598 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v3_ds_connect() local
612 clp = get_v3_ds_connect(mds_srv->nfs_client, in _nfs4_pnfs_v3_ds_connect()
616 if (!IS_ERR(clp)) in _nfs4_pnfs_v3_ds_connect()
620 if (IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect()
621 status = PTR_ERR(clp); in _nfs4_pnfs_v3_ds_connect()
626 ds->ds_clp = clp; in _nfs4_pnfs_v3_ds_connect()
639 struct nfs_client *clp = ERR_PTR(-EIO); in _nfs4_pnfs_v4_ds_connect() local
650 clp = nfs4_set_ds_client(mds_srv->nfs_client, in _nfs4_pnfs_v4_ds_connect()
655 if (!IS_ERR(clp)) in _nfs4_pnfs_v4_ds_connect()
659 if (IS_ERR(clp)) { in _nfs4_pnfs_v4_ds_connect()
[all …]
Dnfs3client.c92 struct nfs_client *clp; in nfs3_set_ds_client() local
102 clp = nfs_get_client(&cl_init, &ds_timeout, mds_clp->cl_ipaddr, in nfs3_set_ds_client()
105 return clp; in nfs3_set_ds_client()
Dcallback.c394 check_gss_callback_principal(struct nfs_client *clp, struct svc_rqst *rqstp) in check_gss_callback_principal() argument
402 if (clp->cl_minorversion != 0) in check_gss_callback_principal()
415 if (clp->cl_acceptor) in check_gss_callback_principal()
416 return !strcmp(p, clp->cl_acceptor); in check_gss_callback_principal()
428 if (strcmp(p, clp->cl_hostname) != 0) in check_gss_callback_principal()
Dnfs4idmap.c443 nfs_idmap_new(struct nfs_client *clp) in nfs_idmap_new() argument
465 error = rpc_add_pipe_dir_object(clp->cl_net, in nfs_idmap_new()
466 &clp->cl_rpcclient->cl_pipedir_objects, in nfs_idmap_new()
471 clp->cl_idmap = idmap; in nfs_idmap_new()
481 nfs_idmap_delete(struct nfs_client *clp) in nfs_idmap_delete() argument
483 struct idmap *idmap = clp->cl_idmap; in nfs_idmap_delete()
487 clp->cl_idmap = NULL; in nfs_idmap_delete()
488 rpc_remove_pipe_dir_object(clp->cl_net, in nfs_idmap_delete()
489 &clp->cl_rpcclient->cl_pipedir_objects, in nfs_idmap_delete()
Dnfs4trace.h197 const struct nfs_client *clp,
201 TP_ARGS(clp, error),
205 rpc_peeraddr2str(clp->cl_rpcclient,
213 rpc_peeraddr2str(clp->cl_rpcclient,
227 const struct nfs_client *clp, \
230 TP_ARGS(clp, error))
889 const struct nfs_client *clp,
895 TP_ARGS(clp, fhandle, inode, error),
902 __string(dstaddr, clp ?
903 rpc_peeraddr2str(clp->cl_rpcclient,
[all …]
Dpnfs.c220 struct nfs_client *clp = server->nfs_client; in pnfs_free_layout_hdr() local
222 spin_lock(&clp->cl_lock); in pnfs_free_layout_hdr()
224 spin_unlock(&clp->cl_lock); in pnfs_free_layout_hdr()
650 pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, in pnfs_layout_bulk_destroy_byserver_locked() argument
665 spin_unlock(&clp->cl_lock); in pnfs_layout_bulk_destroy_byserver_locked()
667 spin_lock(&clp->cl_lock); in pnfs_layout_bulk_destroy_byserver_locked()
713 pnfs_destroy_layouts_byfsid(struct nfs_client *clp, in pnfs_destroy_layouts_byfsid() argument
720 spin_lock(&clp->cl_lock); in pnfs_destroy_layouts_byfsid()
723 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in pnfs_destroy_layouts_byfsid()
726 if (pnfs_layout_bulk_destroy_byserver_locked(clp, in pnfs_destroy_layouts_byfsid()
[all …]
Dfscache.h183 static inline void nfs_fscache_get_client_cookie(struct nfs_client *clp) {} in nfs_fscache_get_client_cookie() argument
184 static inline void nfs_fscache_release_client_cookie(struct nfs_client *clp) {} in nfs_fscache_release_client_cookie() argument
Dinternal.h185 extern int nfs_wait_client_init_complete(const struct nfs_client *clp);
186 extern void nfs_mark_client_ready(struct nfs_client *clp, int state);
340 extern struct nfs_client *nfs_init_client(struct nfs_client *clp,
526 extern struct nfs_client *nfs4_init_client(struct nfs_client *clp,
529 extern int nfs40_walk_client_list(struct nfs_client *clp,
532 extern int nfs41_walk_client_list(struct nfs_client *clp,
Dpnfs.h253 int pnfs_destroy_layouts_byfsid(struct nfs_client *clp,
256 int pnfs_destroy_layouts_byclid(struct nfs_client *clp,
300 void nfs4_deviceid_mark_client_invalid(struct nfs_client *clp);
576 static inline void pnfs_destroy_all_layouts(struct nfs_client *clp) in pnfs_destroy_all_layouts() argument
Dcallback_xdr.c772 nfs4_callback_free_slot(cps->clp->cl_session); in nfs4_cb_free_slot()
895 .clp = NULL, in nfs4_callback_compound()
913 cps.clp = nfs4_find_client_ident(SVC_NET(rqstp), hdr_arg.cb_ident); in nfs4_callback_compound()
914 if (!cps.clp || !check_gss_callback_principal(cps.clp, rqstp)) in nfs4_callback_compound()
940 nfs_put_client(cps.clp); in nfs4_callback_compound()
Dcallback.h42 struct nfs_client *clp; member
Dsuper.c605 struct nfs_client *clp = nfss->nfs_client; in nfs_show_nfsv4_options() local
607 seq_printf(m, ",clientaddr=%s", clp->cl_ipaddr); in nfs_show_nfsv4_options()
648 struct nfs_client *clp = nfss->nfs_client; in nfs_show_mount_options() local
649 u32 version = clp->rpc_ops->version; in nfs_show_mount_options()
652 nfs_show_nfs_version(m, version, clp->cl_minorversion); in nfs_show_mount_options()
Dnfs4xdr.c1812 struct nfs_client *clp = args->client; in encode_create_session() local
1813 struct rpc_clnt *clnt = clp->cl_rpcclient; in encode_create_session()
1814 struct nfs_net *nn = net_generic(clp->cl_net, nfs_net_id); in encode_create_session()
2071 return session->clp->cl_mvops->minor_version; in nfs4_xdr_minorversion()
2612 struct nfs_client *clp) in nfs4_xdr_enc_renew() argument
2619 encode_renew(xdr, clp->cl_clientid, &hdr); in nfs4_xdr_enc_renew()
2802 .minorversion = session->clp->cl_mvops->minor_version, in nfs4_xdr_enc_destroy_session()
2815 struct nfs_client *clp) in nfs4_xdr_enc_destroy_clientid() argument
2818 .minorversion = clp->cl_mvops->minor_version, in nfs4_xdr_enc_destroy_clientid()
2822 encode_destroy_clientid(xdr, clp->cl_clientid, &hdr); in nfs4_xdr_enc_destroy_clientid()
[all …]
/linux-4.4.14/fs/nfsd/
Dnfs4callback.c699 static struct rpc_cred *get_backchannel_cred(struct nfs4_client *clp, struct rpc_clnt *client, stru… in get_backchannel_cred() argument
701 if (clp->cl_minorversion == 0) { in get_backchannel_cred()
729 static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn, struct nfsd4_s… in setup_callback_client() argument
731 int maxtime = max_cb_time(clp->net); in setup_callback_client()
738 .net = clp->net, in setup_callback_client()
750 if (clp->cl_minorversion == 0) { in setup_callback_client()
751 if (!clp->cl_cred.cr_principal && in setup_callback_client()
752 (clp->cl_cred.cr_flavor >= RPC_AUTH_GSS_KRB5)) in setup_callback_client()
754 args.client_name = clp->cl_cred.cr_principal; in setup_callback_client()
757 args.authflavor = clp->cl_cred.cr_flavor; in setup_callback_client()
[all …]
Dnfs4state.c116 static bool is_client_expired(struct nfs4_client *clp) in is_client_expired() argument
118 return clp->cl_time == 0; in is_client_expired()
121 static __be32 get_client_locked(struct nfs4_client *clp) in get_client_locked() argument
123 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in get_client_locked()
127 if (is_client_expired(clp)) in get_client_locked()
129 atomic_inc(&clp->cl_refcount); in get_client_locked()
135 renew_client_locked(struct nfs4_client *clp) in renew_client_locked() argument
137 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in renew_client_locked()
139 if (is_client_expired(clp)) { in renew_client_locked()
143 clp->cl_clientid.cl_boot, in renew_client_locked()
[all …]
Dnfs4recover.c149 legacy_recdir_name_error(struct nfs4_client *clp, int error) in legacy_recdir_name_error() argument
162 nfsd4_client_tracking_exit(clp->net); in legacy_recdir_name_error()
167 nfsd4_create_clid_dir(struct nfs4_client *clp) in nfsd4_create_clid_dir() argument
174 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in nfsd4_create_clid_dir()
176 if (test_and_set_bit(NFSD4_CLIENT_STABLE, &clp->cl_flags)) in nfsd4_create_clid_dir()
181 status = nfs4_make_rec_clidname(dname, &clp->cl_name); in nfsd4_create_clid_dir()
183 return legacy_recdir_name_error(clp, status); in nfsd4_create_clid_dir()
221 crp->cr_clp = clp; in nfsd4_create_clid_dir()
343 nfsd4_remove_clid_dir(struct nfs4_client *clp) in nfsd4_remove_clid_dir() argument
349 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in nfsd4_remove_clid_dir()
[all …]
Dnfs4layouts.c134 struct nfs4_client *clp = ls->ls_stid.sc_client; in nfsd4_free_layout_stateid() local
139 spin_lock(&clp->cl_lock); in nfsd4_free_layout_stateid()
141 spin_unlock(&clp->cl_lock); in nfsd4_free_layout_stateid()
187 struct nfs4_client *clp = cstate->clp; in nfsd4_alloc_layout_stateid() local
192 stp = nfs4_alloc_stid(cstate->clp, nfs4_layout_stateid_cache); in nfsd4_alloc_layout_stateid()
206 nfsd4_init_cb(&ls->ls_recall, clp, &nfsd4_cb_layout_ops, in nfsd4_alloc_layout_stateid()
222 spin_lock(&clp->cl_lock); in nfsd4_alloc_layout_stateid()
224 list_add(&ls->ls_perclnt, &clp->cl_lo_states); in nfsd4_alloc_layout_stateid()
225 spin_unlock(&clp->cl_lock); in nfsd4_alloc_layout_stateid()
508 struct nfs4_client *clp = cstate->clp; in nfsd4_return_client_layouts() local
[all …]
Dpnfs.h59 void nfsd4_return_all_file_layouts(struct nfs4_client *clp,
71 static inline void nfsd4_return_all_client_layouts(struct nfs4_client *clp) in nfsd4_return_all_client_layouts() argument
74 static inline void nfsd4_return_all_file_layouts(struct nfs4_client *clp, in nfsd4_return_all_file_layouts() argument
Dstate.h598 extern void nfsd4_probe_callback(struct nfs4_client *clp);
599 extern void nfsd4_probe_callback_sync(struct nfs4_client *clp);
600 extern void nfsd4_change_callback(struct nfs4_client *clp, struct nfs4_cb_conn *);
601 extern void nfsd4_init_cb(struct nfsd4_callback *cb, struct nfs4_client *clp,
626 extern void nfsd4_client_record_create(struct nfs4_client *clp);
627 extern void nfsd4_client_record_remove(struct nfs4_client *clp);
628 extern int nfsd4_client_record_check(struct nfs4_client *clp);
Dexport.c803 exp_find_key(struct cache_detail *cd, struct auth_domain *clp, int fsid_type, in exp_find_key() argument
809 if (!clp) in exp_find_key()
812 key.ek_client = clp; in exp_find_key()
826 exp_get_by_name(struct cache_detail *cd, struct auth_domain *clp, in exp_get_by_name() argument
832 if (!clp) in exp_get_by_name()
835 key.ex_client = clp; in exp_get_by_name()
852 exp_parent(struct cache_detail *cd, struct auth_domain *clp, struct path *path) in exp_parent() argument
855 struct svc_export *exp = exp_get_by_name(cd, clp, path, NULL); in exp_parent()
861 exp = exp_get_by_name(cd, clp, path, NULL); in exp_parent()
876 exp_rootfh(struct net *net, struct auth_domain *clp, char *name, in exp_rootfh() argument
[all …]
Dnfs4idmap.c516 struct auth_domain *clp; in rqst_authname() local
518 clp = rqstp->rq_gssclient ? rqstp->rq_gssclient : rqstp->rq_client; in rqst_authname()
519 return clp->name; in rqst_authname()
Dxdr4.h57 struct nfs4_client *clp; member
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Drw26.c232 struct cl_page *clp; in ll_direct_rw_pages() local
252 clp = cl_page_find(env, obj, cl_index(obj, file_offset), in ll_direct_rw_pages()
254 if (IS_ERR(clp)) { in ll_direct_rw_pages()
255 rc = PTR_ERR(clp); in ll_direct_rw_pages()
259 rc = cl_page_own(env, io, clp); in ll_direct_rw_pages()
261 LASSERT(clp->cp_state == CPS_FREEING); in ll_direct_rw_pages()
262 cl_page_put(env, clp); in ll_direct_rw_pages()
270 if (clp->cp_type == CPT_CACHEABLE) { in ll_direct_rw_pages()
271 struct page *vmpage = cl_page_vmpage(env, clp); in ll_direct_rw_pages()
295 cl_page_disown(env, io, clp); in ll_direct_rw_pages()
[all …]
Dvvp_page.c501 struct cl_page *clp = slice->cpl_page; in vvp_transient_page_fini() local
502 struct ccc_object *clobj = cl2ccc(clp->cp_obj); in vvp_transient_page_fini()
/linux-4.4.14/drivers/media/usb/pvrusb2/
Dpvrusb2-sysfs.c507 struct pvr2_sysfs_class *clp; in pvr2_sysfs_class_release() local
508 clp = container_of(class,struct pvr2_sysfs_class,class); in pvr2_sysfs_class_release()
509 pvr2_sysfs_trace("Destroying pvr2_sysfs_class id=%p",clp); in pvr2_sysfs_class_release()
510 kfree(clp); in pvr2_sysfs_class_release()
789 struct pvr2_sysfs_class *clp; in pvr2_sysfs_class_create() local
790 clp = kzalloc(sizeof(*clp),GFP_KERNEL); in pvr2_sysfs_class_create()
791 if (!clp) return clp; in pvr2_sysfs_class_create()
793 clp); in pvr2_sysfs_class_create()
794 clp->class.name = "pvrusb2"; in pvr2_sysfs_class_create()
795 clp->class.class_release = pvr2_sysfs_class_release; in pvr2_sysfs_class_create()
[all …]
/linux-4.4.14/include/net/
Dpkt_cls.h21 __cls_set_class(unsigned long *clp, unsigned long cl) in __cls_set_class() argument
23 return xchg(clp, cl); in __cls_set_class()
27 cls_set_class(struct tcf_proto *tp, unsigned long *clp, in cls_set_class() argument
33 old_cl = __cls_set_class(clp, cl); in cls_set_class()
/linux-4.4.14/arch/arm/boot/dts/
Dnspire-clp.dts2 * linux/arch/arm/boot/nspire-clp.dts
44 compatible = "ti,nspire-clp";
DMakefile391 nspire-clp.dtb
/linux-4.4.14/Documentation/devicetree/bindings/arm/
Dnspire.txt7 Clickpad models should have "ti,nspire-clp"
/linux-4.4.14/drivers/staging/lustre/lustre/obdecho/
Decho_client.c1159 struct cl_page *clp; in cl_echo_async_brw() local
1163 cl_page_list_for_each_safe(clp, temp, &queue->c2_qin) { in cl_echo_async_brw()
1166 rc = cl_page_cache_add(env, io, clp, CRT_WRITE); in cl_echo_async_brw()
1183 struct cl_page *clp; in cl_echo_object_brw() local
1217 clp = cl_page_find(env, obj, cl_index(obj, offset), in cl_echo_object_brw()
1219 if (IS_ERR(clp)) { in cl_echo_object_brw()
1220 rc = PTR_ERR(clp); in cl_echo_object_brw()
1223 LASSERT(clp->cp_type == CPT_TRANSIENT); in cl_echo_object_brw()
1225 rc = cl_page_own(env, io, clp); in cl_echo_object_brw()
1227 LASSERT(clp->cp_state == CPS_FREEING); in cl_echo_object_brw()
[all …]
/linux-4.4.14/drivers/atm/
Dnicstar.h236 #define ns_tbd_mkword_4(gfc, vpi, vci, pt, clp) \ argument
237 (cpu_to_le32((gfc) << 28 | (vpi) << 20 | (vci) << 4 | (pt) << 1 | (clp)))
Dfore200e.h90 u32 clp : 1, /* cell loss priority */
Dhe.c2541 int clp, pti; in he_send() local
2544 clp = (*pti_clp & ATM_HDR_CLP); in he_send()
2546 if (clp) in he_send()
Dfore200e.c1073 rpd->atm_header.clp; in fore200e_push_rpd()
1709 tpd->atm_header.clp = (*cell_header & ATM_HDR_CLP); in fore200e_send()
1717 tpd->atm_header.clp = 0; in fore200e_send()
/linux-4.4.14/fs/nfs/filelayout/
Dfilelayout.c124 struct nfs_client *clp, in filelayout_async_handle_error() argument
132 struct nfs4_slot_table *tbl = &clp->cl_session->fc_slot_table; in filelayout_async_handle_error()
165 clp->cl_exchange_flags); in filelayout_async_handle_error()
166 nfs4_schedule_session_recovery(clp->cl_session, task->tk_status); in filelayout_async_handle_error()
/linux-4.4.14/fs/nfs/flexfilelayout/
Dflexfilelayout.c964 struct nfs_client *clp, in ff_layout_async_handle_error_v4() argument
974 struct nfs4_slot_table *tbl = &clp->cl_session->fc_slot_table; in ff_layout_async_handle_error_v4()
1010 clp->cl_exchange_flags); in ff_layout_async_handle_error_v4()
1011 nfs4_schedule_session_recovery(clp->cl_session, task->tk_status); in ff_layout_async_handle_error_v4()
1111 struct nfs_client *clp, in ff_layout_async_handle_error() argument
1115 int vers = clp->cl_nfs_mod->rpc_vers->number; in ff_layout_async_handle_error()
1121 return ff_layout_async_handle_error_v4(task, state, clp, in ff_layout_async_handle_error()
/linux-4.4.14/net/sched/
Dsch_cbq.c1124 struct cbq_class *cl, **clp; in cbq_unlink_class() local
1130 clp = &this->sibling; in cbq_unlink_class()
1131 cl = *clp; in cbq_unlink_class()
1134 *clp = cl->sibling; in cbq_unlink_class()
1137 clp = &cl->sibling; in cbq_unlink_class()
1138 } while ((cl = *clp) != this->sibling); in cbq_unlink_class()
Dsch_htb.c795 struct htb_prio *clp; in htb_lookup_leaf() local
800 clp = &cl->un.inner.clprio[prio]; in htb_lookup_leaf()
801 (++sp)->root = clp->feed.rb_node; in htb_lookup_leaf()
802 sp->pptr = &clp->ptr; in htb_lookup_leaf()
803 sp->pid = &clp->last_ptr_id; in htb_lookup_leaf()
/linux-4.4.14/include/linux/
Dnfs_xdr.h316 struct nfs_client *clp; member