Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/fs/nfs/
A Dnfs4state.c185 if (clp->cl_state) in nfs40_discover_server_trunking()
297 if (clp->cl_slot_tbl) in nfs4_begin_drain_session()
365 if (clp != *result) in nfs41_discover_server_trunking()
382 nfs_put_client(clp); in nfs41_discover_server_trunking()
1247 if (!clp) in nfs4_schedule_lease_recovery()
1252 clp->cl_hostname); in nfs4_schedule_lease_recovery()
1302 __func__, clp->cl_clientid, clp->cl_hostname); in nfs4_schedule_lease_moved_recovery()
2194 clp->cl_mig_gen++; in nfs4_handle_migration()
2240 clp->cl_mig_gen++; in nfs4_handle_lease_moved()
2374 struct nfs_client *clp = session->clp; in nfs4_schedule_session_recovery() local
[all …]
A Dclient.c154 if ((clp = kzalloc(sizeof(*clp), GFP_KERNEL)) == NULL) in nfs_alloc_client()
162 clp->rpc_ops = clp->cl_nfs_mod->rpc_ops; in nfs_alloc_client()
187 return clp; in nfs_alloc_client()
192 kfree(clp); in nfs_alloc_client()
248 kfree(clp); in nfs_free_client()
259 if (!clp) in nfs_put_client()
271 clp->rpc_ops->free_client(clp); in nfs_put_client()
330 return clp; in nfs_match_client()
392 return clp; in nfs_found_client()
415 if (clp) { in nfs_get_client()
[all …]
A Dnfs4renewd.c58 struct nfs_client *clp = in nfs4_renew_state() local
71 lease = clp->cl_lease_time; in nfs4_renew_state()
72 last = clp->cl_last_renewal; in nfs4_renew_state()
77 if (nfs_delegations_present(clp)) in nfs4_renew_state()
106 nfs4_schedule_state_renewal(clp); in nfs4_renew_state()
118 spin_lock(&clp->cl_lock); in nfs4_schedule_state_renewal()
119 timeout = (2 * clp->cl_lease_time) / 3 + (long)clp->cl_last_renewal in nfs4_schedule_state_renewal()
127 spin_unlock(&clp->cl_lock); in nfs4_schedule_state_renewal()
145 spin_lock(&clp->cl_lock); in nfs4_set_lease_period()
146 clp->cl_lease_time = lease; in nfs4_set_lease_period()
[all …]
A Dnfs4client.c205 if (IS_ERR(clp)) in nfs4_alloc_client()
206 return clp; in nfs4_alloc_client()
257 strscpy(clp->cl_ipaddr, ip_addr, sizeof(clp->cl_ipaddr)); in nfs4_alloc_client()
266 return clp; in nfs4_alloc_client()
286 clp->cl_mvops->shutdown_client(clp); in nfs4_shutdown_client()
400 ret = clp->cl_mvops->init_client(clp); in nfs4_init_client_minor_version()
449 return clp; in nfs4_init_client()
814 if (clp) in nfs4_find_client_ident()
817 return clp; in nfs4_find_client_ident()
872 return clp; in nfs4_find_client_sessionid()
[all …]
A Dcallback_proc.c342 if (cps->clp) in nfs4_callback_layoutrecall()
355 do_callback_layoutrecall(clp, &args); in pnfs_recall_all_layouts()
366 if (!cps->clp) { in nfs4_callback_devicenotify()
463 session = clp->cl_session; in referring_call_exists()
495 struct nfs_client *clp; in nfs4_callback_sequence() local
501 if (clp == NULL) in nfs4_callback_sequence()
571 cps->clp = clp; /* put in nfs4_callback_compound */ in nfs4_callback_sequence()
620 pnfs_recall_all_layouts(cps->clp); in nfs4_callback_recallany()
659 nfs41_notify_server(cps->clp); in nfs4_callback_recallslot()
709 spin_lock(&cps->clp->cl_lock); in nfs4_callback_offload()
[all …]
A Dnfs4session.h75 struct nfs_client *clp; member
111 return clp->cl_session; 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);
131 static inline int nfs4_has_session(const struct nfs_client *clp) in nfs4_has_session() argument
133 if (clp->cl_session) in nfs4_has_session()
138 static inline int nfs4_has_persistent_session(const struct nfs_client *clp) in nfs4_has_persistent_session() argument
140 if (nfs4_has_session(clp)) in nfs4_has_persistent_session()
141 return (clp->cl_session->flags & SESSION4_PERSIST); in nfs4_has_persistent_session()
163 static inline int nfs4_init_session(struct nfs_client *clp) in nfs4_init_session() argument
[all …]
A Ddelegation.c339 struct nfs_client *clp) in nfs_detach_delegation_locked() argument
343 lockdep_is_held(&clp->cl_lock)); in nfs_detach_delegation_locked()
366 spin_lock(&clp->cl_lock); in nfs_detach_delegation()
368 spin_unlock(&clp->cl_lock); in nfs_detach_delegation()
453 spin_lock(&clp->cl_lock); in nfs_inode_set_delegation()
476 __func__, clp->cl_hostname); in nfs_inode_set_delegation()
515 spin_unlock(&clp->cl_lock); in nfs_inode_set_delegation()
859 nfs4_schedule_state_manager(clp); in nfs_delegation_run_state_manager()
883 if (clp == NULL) in nfs_server_return_all_delegations()
892 nfs4_wait_clnt_recover(clp); in nfs_server_return_all_delegations()
[all …]
A Dnfs4_fs.h255 struct nfs_client *clp; member
302 extern int nfs4_destroy_clientid(struct nfs_client *clp);
352 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument
359 is_ds_client(struct nfs_client *clp) in is_ds_client() argument
381 if (test_bit(sp4_mode, &clp->cl_sp4_flags)) { in _nfs4_state_protect()
384 flavor = clp->cl_rpcclient->cl_auth->au_flavor; in _nfs4_state_protect()
387 *clntp = clp->cl_rpcclient; in _nfs4_state_protect()
404 _nfs4_state_protect(clp, sp4_mode, clntp, msg); in nfs4_state_protect()
422 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument
428 is_ds_client(struct nfs_client *clp) in is_ds_client() argument
[all …]
A Ddelegation.h51 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, const struct nfs_fh *fhandle);
53 void nfs_expire_all_delegations(struct nfs_client *clp);
54 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags);
55 void nfs_expire_unreferenced_delegations(struct nfs_client *clp);
56 int nfs_client_return_marked_delegations(struct nfs_client *clp);
57 int nfs_delegations_present(struct nfs_client *clp);
61 void nfs_delegation_mark_reclaim(struct nfs_client *clp);
62 void nfs_delegation_reap_unclaimed(struct nfs_client *clp);
64 void nfs_mark_test_expired_all_delegations(struct nfs_client *clp);
65 void nfs_test_expired_all_delegations(struct nfs_client *clp);
[all …]
A Dsysfs.c173 struct nfs_netns_client *clp; in nfs_netns_sysfs_setup() local
175 clp = nfs_netns_client_alloc(nfs_client_kobj, net); in nfs_netns_sysfs_setup()
176 if (clp) { in nfs_netns_sysfs_setup()
177 netns->nfs_client = clp; in nfs_netns_sysfs_setup()
178 kobject_uevent(&clp->kobject, KOBJ_ADD); in nfs_netns_sysfs_setup()
184 struct nfs_netns_client *clp = netns->nfs_client; in nfs_netns_sysfs_destroy() local
186 if (clp) { in nfs_netns_sysfs_destroy()
187 kobject_uevent(&clp->kobject, KOBJ_REMOVE); in nfs_netns_sysfs_destroy()
188 kobject_del(&clp->kobject); in nfs_netns_sysfs_destroy()
189 kobject_put(&clp->kobject); in nfs_netns_sysfs_destroy()
A Dnfs4session.c571 session->clp = clp; in nfs4_alloc_session()
586 cred = nfs4_get_clid_cred(session->clp); in nfs4_destroy_session()
616 if (clp->cl_cons_state < NFS_CS_READY) in nfs41_check_session_ready()
624 if (!nfs4_has_session(clp)) in nfs4_init_session()
628 return nfs41_check_session_ready(clp); in nfs4_init_session()
636 spin_lock(&clp->cl_lock); in nfs4_init_ds_session()
642 clp->cl_lease_time = lease_time; in nfs4_init_ds_session()
643 clp->cl_last_renewal = jiffies; in nfs4_init_ds_session()
645 spin_unlock(&clp->cl_lock); in nfs4_init_ds_session()
647 ret = nfs41_check_session_ready(clp); in nfs4_init_ds_session()
[all …]
A Dpnfs_nfs.c866 if (!IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect()
869 .net = clp->cl_net, in _nfs4_pnfs_v3_ds_connect()
888 if (IS_ERR(clp)) in _nfs4_pnfs_v3_ds_connect()
894 if (IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect()
895 status = PTR_ERR(clp); in _nfs4_pnfs_v3_ds_connect()
922 if (!IS_ERR(clp) && clp->cl_mvops->session_trunk) { in _nfs4_pnfs_v4_ds_connect()
925 .net = clp->cl_net, in _nfs4_pnfs_v4_ds_connect()
931 .clp = clp, in _nfs4_pnfs_v4_ds_connect()
958 if (IS_ERR(clp)) in _nfs4_pnfs_v4_ds_connect()
964 nfs_put_client(clp); in _nfs4_pnfs_v4_ds_connect()
[all …]
A Dnfs4proc.c823 clp = session->clp; in nfs41_sequence_process()
3965 .clp = clp, in test_fs_location_for_trunking()
8547 .clp = clp, in nfs4_proc_bind_conn_to_session()
9064 .clp = clp, in nfs4_proc_get_lease_time()
9263 .clp = clp, in nfs4_proc_create_session()
9331 struct nfs_client *clp = calldata->clp; in nfs41_sequence_release() local
9354 struct nfs_client *clp = calldata->clp; in nfs41_sequence_call_done() local
9376 struct nfs_client *clp = calldata->clp; in nfs41_sequence_prepare() local
9422 calldata->clp = clp; in _nfs41_proc_sequence()
9517 struct nfs_client *clp = calldata->clp; in nfs4_reclaim_complete_done() local
[all …]
A Dpnfs_dev.c80 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument
86 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
232 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_delete_deviceid() argument
238 d = _lookup_deviceid(ld, clp, id, nfs4_deviceid_hash(id)); in nfs4_delete_deviceid()
331 _deviceid_purge_client(const struct nfs_client *clp, long hash) in _deviceid_purge_client() argument
339 if (d->nfs_client == clp && atomic_read(&d->ref)) { in _deviceid_purge_client()
358 nfs4_deviceid_purge_client(const struct nfs_client *clp) in nfs4_deviceid_purge_client() argument
362 if (!(clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_MDS)) in nfs4_deviceid_purge_client()
365 _deviceid_purge_client(clp, h); in nfs4_deviceid_purge_client()
372 nfs4_deviceid_mark_client_invalid(struct nfs_client *clp) in nfs4_deviceid_mark_client_invalid() argument
[all …]
A Dfscache.c43 static bool nfs_fscache_get_client_key(struct nfs_client *clp, in nfs_fscache_get_client_key() argument
46 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &clp->cl_addr; in nfs_fscache_get_client_key()
47 const struct sockaddr_in *sin = (struct sockaddr_in *) &clp->cl_addr; in nfs_fscache_get_client_key()
51 clp->rpc_ops->version, in nfs_fscache_get_client_key()
52 clp->cl_minorversion, in nfs_fscache_get_client_key()
53 clp->cl_addr.ss_family); in nfs_fscache_get_client_key()
55 switch (clp->cl_addr.ss_family) { in nfs_fscache_get_client_key()
73 clp->cl_addr.ss_family); in nfs_fscache_get_client_key()
A Dnfs4trace.h37 const struct nfs_client *clp,
41 TP_ARGS(clp, error),
66 TP_ARGS(clp, error))
326 const struct nfs_client *clp
329 TP_ARGS(clp),
1319 __string(dstaddr, clp ? clp->cl_hostname : "unknown")
1332 __assign_str(dstaddr, clp ? clp->cl_hostname : "unknown");
1374 __string(dstaddr, clp ? clp->cl_hostname : "unknown")
1389 __assign_str(dstaddr, clp ? clp->cl_hostname : "unknown");
1925 TP_ARGS(clp, deviceid),
[all …]
/linux-6.3-rc2/fs/nfsd/
A Dnfs4callback.c964 .net = clp->net, in setup_callback_client()
991 clp->cl_cb_session = ses; in setup_callback_client()
1014 clp->cl_cb_cred = cred; in setup_callback_client()
1026 trace_nfsd_cb_state(clp); in nfsd4_mark_cb_state()
1075 trace_nfsd_cb_probe(clp); in nfsd4_probe_callback()
1090 spin_lock(&clp->cl_lock); in nfsd4_change_callback()
1355 if (clp->cl_cb_client) { in nfsd4_process_cb_update()
1359 clp->cl_cb_cred = NULL; in nfsd4_process_cb_update()
1367 spin_lock(&clp->cl_lock); in nfsd4_process_cb_update()
1411 clnt = clp->cl_cb_client; in nfsd4_run_cb_work()
[all …]
A Dnfs4state.c2503 if (!clp) in client_info_show()
2770 if (!clp) in client_states_open()
2840 if (!clp) in client_ctl_write()
3997 cstate->clp = clp; in nfsd4_sequence()
4032 cstate->clp = clp; in nfsd4_sequence()
4113 if (clp) in nfsd4_destroy_clientid()
4123 struct nfs4_client *clp = cstate->clp; in nfsd4_reclaim_complete() local
4581 struct nfs4_client *clp = cstate->clp; in alloc_init_open_stateowner() local
5053 clp = cstate->clp; in nfsd4_process_open1()
5808 clp = cstate->clp; in nfsd4_renew()
[all …]
A Dnfs4recover.c188 crp->cr_clp = clp; in __nfsd4_create_reclaim_record_grace()
705 crp->cr_clp = clp; in nfsd4_check_legacy_client()
1116 clp->cl_name.len); in nfsd4_cld_create()
1158 clp->cl_name.len); in nfsd4_cld_create_v2()
1219 clp->cl_name.len); in nfsd4_cld_remove()
1262 clp->cl_name.len); in nfsd4_cld_check_v0()
1319 crp->cr_clp = clp; in nfsd4_cld_check()
1389 crp->cr_clp = clp; in nfsd4_cld_check_v2()
1911 hexid = bin_to_hex_dup(clp->cl_name.data, clp->cl_name.len); in nfsd4_umh_cltrack_create()
1938 hexid = bin_to_hex_dup(clp->cl_name.data, clp->cl_name.len); in nfsd4_umh_cltrack_remove()
[all …]
A Dtrace.h777 const struct nfs4_client *clp,
780 TP_ARGS(clp, rqstp),
810 TP_ARGS(clp, rqstp, verf),
838 TP_ARGS(clp),
855 __assign_str_len(name, clp->cl_name.data, clp->cl_name.len);
867 TP_ARGS(clp))
1269 TP_ARGS(clp, conn),
1291 TP_ARGS(clp),
1312 TP_ARGS(clp),
1334 TP_ARGS(clp))
[all …]
A Dnfs4layouts.c164 spin_lock(&clp->cl_lock); in nfsd4_free_layout_stateid()
166 spin_unlock(&clp->cl_lock); in nfsd4_free_layout_stateid()
216 struct nfs4_client *clp = cstate->clp; in nfsd4_alloc_layout_stateid() local
252 spin_lock(&clp->cl_lock); in nfsd4_alloc_layout_stateid()
255 spin_unlock(&clp->cl_lock); in nfsd4_alloc_layout_stateid()
538 struct nfs4_client *clp = cstate->clp; in nfsd4_return_client_layouts() local
544 spin_lock(&clp->cl_lock); in nfsd4_return_client_layouts()
562 spin_unlock(&clp->cl_lock); in nfsd4_return_client_layouts()
583 spin_lock(&clp->cl_lock); in nfsd4_return_all_client_layouts()
586 spin_unlock(&clp->cl_lock); in nfsd4_return_all_client_layouts()
[all …]
A Dblocklayout.c167 struct nfs4_client *clp, in nfsd4_block_proc_getdeviceinfo() argument
217 static u64 nfsd4_scsi_pr_key(struct nfs4_client *clp) in nfsd4_scsi_pr_key() argument
219 return ((u64)clp->cl_clientid.cl_boot << 32) | clp->cl_clientid.cl_id; in nfsd4_scsi_pr_key()
249 struct nfs4_client *clp, in nfsd4_block_get_device_info_scsi() argument
267 b->scsi.pr_key = nfsd4_scsi_pr_key(clp); in nfsd4_block_get_device_info_scsi()
306 struct nfs4_client *clp, in nfsd4_scsi_proc_getdeviceinfo() argument
311 return nfserrno(nfsd4_block_get_device_info_scsi(sb, clp, gdp)); in nfsd4_scsi_proc_getdeviceinfo()
331 struct nfs4_client *clp = ls->ls_stid.sc_client; in nfsd4_scsi_fence_client() local
335 nfsd4_scsi_pr_key(clp), 0, true); in nfsd4_scsi_fence_client()
A Dstate.h693 extern void nfsd4_probe_callback(struct nfs4_client *clp);
694 extern void nfsd4_probe_callback_sync(struct nfs4_client *clp);
696 extern void nfsd4_init_cb(struct nfsd4_callback *cb, struct nfs4_client *clp,
702 extern void nfsd4_shutdown_copy(struct nfs4_client *clp);
711 struct nfs4_client *clp,
725 extern void nfsd4_client_record_create(struct nfs4_client *clp);
726 extern void nfsd4_client_record_remove(struct nfs4_client *clp);
727 extern int nfsd4_client_record_check(struct nfs4_client *clp);
730 static inline bool try_to_expire_client(struct nfs4_client *clp) in try_to_expire_client() argument
732 cmpxchg(&clp->cl_state, NFSD4_COURTESY, NFSD4_EXPIRABLE); in try_to_expire_client()
[all …]
A Dpnfs.h27 struct nfs4_client *clp,
73 void nfsd4_return_all_file_layouts(struct nfs4_client *clp,
85 static inline void nfsd4_return_all_client_layouts(struct nfs4_client *clp) in nfsd4_return_all_client_layouts() argument
88 static inline void nfsd4_return_all_file_layouts(struct nfs4_client *clp, in nfsd4_return_all_file_layouts() argument
/linux-6.3-rc2/drivers/media/usb/pvrusb2/
A Dpvrusb2-sysfs.c492 struct pvr2_sysfs_class *clp; in pvr2_sysfs_class_release() local
495 kfree(clp); in pvr2_sysfs_class_release()
774 struct pvr2_sysfs_class *clp; in pvr2_sysfs_class_create() local
775 clp = kzalloc(sizeof(*clp),GFP_KERNEL); in pvr2_sysfs_class_create()
776 if (!clp) return clp; in pvr2_sysfs_class_create()
778 clp); in pvr2_sysfs_class_create()
779 clp->class.name = "pvrusb2"; in pvr2_sysfs_class_create()
785 kfree(clp); in pvr2_sysfs_class_create()
786 clp = NULL; in pvr2_sysfs_class_create()
788 return clp; in pvr2_sysfs_class_create()
[all …]

Completed in 92 milliseconds

123