/linux/fs/nfs/ |
A D | nfs4state.c | 184 if (clp->cl_state) in nfs40_discover_server_trunking() 296 if (clp->cl_slot_tbl) in nfs4_begin_drain_session() 364 if (clp != *result) in nfs41_discover_server_trunking() 381 nfs_put_client(clp); in nfs41_discover_server_trunking() 1237 if (!clp) in nfs4_schedule_lease_recovery() 1242 clp->cl_hostname); in nfs4_schedule_lease_recovery() 1292 __func__, clp->cl_clientid, clp->cl_hostname); in nfs4_schedule_lease_moved_recovery() 2160 clp->cl_mig_gen++; in nfs4_handle_migration() 2206 clp->cl_mig_gen++; in nfs4_handle_lease_moved() 2340 struct nfs_client *clp = session->clp; in nfs4_schedule_session_recovery() local [all …]
|
A D | client.c | 154 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() 188 return clp; in nfs_alloc_client() 193 kfree(clp); in nfs_alloc_client() 251 kfree(clp); in nfs_free_client() 262 if (!clp) in nfs_put_client() 274 clp->rpc_ops->free_client(clp); in nfs_put_client() 333 return clp; in nfs_match_client() 395 return clp; in nfs_found_client() 418 if (clp) { in nfs_get_client() [all …]
|
A D | nfs4client.c | 205 if (IS_ERR(clp)) in nfs4_alloc_client() 206 return clp; in nfs4_alloc_client() 257 strlcpy(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() 399 ret = clp->cl_mvops->init_client(clp); in nfs4_init_client_minor_version() 448 return clp; in nfs4_init_client() 813 if (clp) in nfs4_find_client_ident() 816 return clp; in nfs4_find_client_ident() 871 return clp; in nfs4_find_client_sessionid() [all …]
|
A D | nfs4renewd.c | 58 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 D | callback_proc.c | 341 if (cps->clp) in nfs4_callback_layoutrecall() 363 struct nfs_client *clp = cps->clp; in nfs4_callback_devicenotify() local 366 if (!clp) { in nfs4_callback_devicenotify() 471 session = clp->cl_session; in referring_call_exists() 503 struct nfs_client *clp; in nfs4_callback_sequence() local 509 if (clp == NULL) in nfs4_callback_sequence() 579 cps->clp = clp; /* put in nfs4_callback_compound */ in nfs4_callback_sequence() 628 pnfs_recall_all_layouts(cps->clp); in nfs4_callback_recallany() 667 nfs41_notify_server(cps->clp); in nfs4_callback_recallslot() 717 spin_lock(&cps->clp->cl_lock); in nfs4_callback_offload() [all …]
|
A D | delegation.c | 341 struct nfs_client *clp) in nfs_detach_delegation_locked() argument 345 lockdep_is_held(&clp->cl_lock)); in nfs_detach_delegation_locked() 368 spin_lock(&clp->cl_lock); in nfs_detach_delegation() 370 spin_unlock(&clp->cl_lock); in nfs_detach_delegation() 455 spin_lock(&clp->cl_lock); in nfs_inode_set_delegation() 478 __func__, clp->cl_hostname); in nfs_inode_set_delegation() 517 spin_unlock(&clp->cl_lock); in nfs_inode_set_delegation() 861 nfs4_schedule_state_manager(clp); in nfs_delegation_run_state_manager() 885 if (clp == NULL) in nfs_server_return_all_delegations() 894 nfs4_wait_clnt_recover(clp); in nfs_server_return_all_delegations() [all …]
|
A D | nfs4_fs.h | 252 struct nfs_client *clp; member 298 extern int nfs4_destroy_clientid(struct nfs_client *clp); 345 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument 352 is_ds_client(struct nfs_client *clp) in is_ds_client() argument 374 if (test_bit(sp4_mode, &clp->cl_sp4_flags)) { in _nfs4_state_protect() 377 flavor = clp->cl_rpcclient->cl_auth->au_flavor; in _nfs4_state_protect() 380 *clntp = clp->cl_rpcclient; in _nfs4_state_protect() 397 _nfs4_state_protect(clp, sp4_mode, clntp, msg); in nfs4_state_protect() 415 is_ds_only_client(struct nfs_client *clp) in is_ds_only_client() argument 421 is_ds_client(struct nfs_client *clp) in is_ds_client() argument [all …]
|
A D | nfs4session.h | 75 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 D | delegation.h | 51 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 D | sysfs.c | 172 struct nfs_netns_client *clp; in nfs_netns_sysfs_setup() local 174 clp = nfs_netns_client_alloc(nfs_client_kobj, net); in nfs_netns_sysfs_setup() 175 if (clp) { in nfs_netns_sysfs_setup() 176 netns->nfs_client = clp; in nfs_netns_sysfs_setup() 177 kobject_uevent(&clp->kobject, KOBJ_ADD); in nfs_netns_sysfs_setup() 183 struct nfs_netns_client *clp = netns->nfs_client; in nfs_netns_sysfs_destroy() local 185 if (clp) { in nfs_netns_sysfs_destroy() 186 kobject_uevent(&clp->kobject, KOBJ_REMOVE); in nfs_netns_sysfs_destroy() 187 kobject_del(&clp->kobject); in nfs_netns_sysfs_destroy() 188 kobject_put(&clp->kobject); in nfs_netns_sysfs_destroy()
|
A D | nfs4session.c | 571 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 D | fscache.c | 58 key.hdr.nfsversion = clp->rpc_ops->version; in nfs_fscache_get_client_cookie() 59 key.hdr.minorversion = clp->cl_minorversion; in nfs_fscache_get_client_cookie() 60 key.hdr.family = clp->cl_addr.ss_family; in nfs_fscache_get_client_cookie() 62 switch (clp->cl_addr.ss_family) { in nfs_fscache_get_client_cookie() 77 clp->cl_addr.ss_family); in nfs_fscache_get_client_cookie() 78 clp->fscache = NULL; in nfs_fscache_get_client_cookie() 87 clp, 0, true); in nfs_fscache_get_client_cookie() 89 clp, clp->fscache); in nfs_fscache_get_client_cookie() 98 clp, clp->fscache); in nfs_fscache_release_client_cookie() 100 fscache_relinquish_cookie(clp->fscache, NULL, false); in nfs_fscache_release_client_cookie() [all …]
|
A D | pnfs_nfs.c | 862 if (!IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect() 865 .net = clp->cl_net, in _nfs4_pnfs_v3_ds_connect() 884 if (IS_ERR(clp)) in _nfs4_pnfs_v3_ds_connect() 890 if (IS_ERR(clp)) { in _nfs4_pnfs_v3_ds_connect() 891 status = PTR_ERR(clp); in _nfs4_pnfs_v3_ds_connect() 918 if (!IS_ERR(clp) && clp->cl_mvops->session_trunk) { in _nfs4_pnfs_v4_ds_connect() 921 .net = clp->cl_net, in _nfs4_pnfs_v4_ds_connect() 927 .clp = clp, in _nfs4_pnfs_v4_ds_connect() 954 if (IS_ERR(clp)) in _nfs4_pnfs_v4_ds_connect() 960 nfs_put_client(clp); in _nfs4_pnfs_v4_ds_connect() [all …]
|
A D | nfs4proc.c | 814 clp = session->clp; in nfs41_sequence_process() 6214 clp->rpc_ops->version, clp->cl_minorversion, in nfs4_init_uniform_client_string() 6218 clp->rpc_ops->version, clp->cl_minorversion, in nfs4_init_uniform_client_string() 8324 .clp = clp, in nfs4_proc_bind_conn_to_session() 8838 .clp = clp, in nfs4_proc_get_lease_time() 9096 struct nfs_client *clp = calldata->clp; in nfs41_sequence_release() local 9119 struct nfs_client *clp = calldata->clp; in nfs41_sequence_call_done() local 9141 struct nfs_client *clp = calldata->clp; in nfs41_sequence_prepare() local 9187 calldata->clp = clp; in _nfs41_proc_sequence() 9279 struct nfs_client *clp = calldata->clp; in nfs4_reclaim_complete_done() local [all …]
|
A D | pnfs_dev.c | 80 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 D | nfs4trace.h | 37 const struct nfs_client *clp, 41 TP_ARGS(clp, error), 66 TP_ARGS(clp, error)) 324 const struct nfs_client *clp 327 TP_ARGS(clp), 1317 __string(dstaddr, clp ? clp->cl_hostname : "unknown") 1330 __assign_str(dstaddr, clp ? clp->cl_hostname : "unknown"); 1372 __string(dstaddr, clp ? clp->cl_hostname : "unknown") 1387 __assign_str(dstaddr, clp ? clp->cl_hostname : "unknown"); 1923 TP_ARGS(clp, deviceid), [all …]
|
/linux/fs/nfsd/ |
A D | nfs4callback.c | 893 .net = clp->net, in setup_callback_client() 921 clp->cl_cb_session = ses; in setup_callback_client() 941 clp->cl_cb_cred = cred; in setup_callback_client() 953 trace_nfsd_cb_state(clp); in nfsd4_mark_cb_state() 1002 trace_nfsd_cb_probe(clp); in nfsd4_probe_callback() 1017 spin_lock(&clp->cl_lock); in nfsd4_change_callback() 1282 if (clp->cl_cb_client) { in nfsd4_process_cb_update() 1286 clp->cl_cb_cred = NULL; in nfsd4_process_cb_update() 1294 spin_lock(&clp->cl_lock); in nfsd4_process_cb_update() 1338 clnt = clp->cl_cb_client; in nfsd4_run_cb_work() [all …]
|
A D | nfs4state.c | 2388 if (!clp) in client_info_show() 2654 if (!clp) in client_states_open() 2724 if (!clp) in client_ctl_write() 3842 cstate->clp = clp; in nfsd4_sequence() 3877 cstate->clp = clp; in nfsd4_sequence() 3958 if (clp) in nfsd4_destroy_clientid() 3968 struct nfs4_client *clp = cstate->clp; in nfsd4_reclaim_complete() local 4382 struct nfs4_client *clp = cstate->clp; in alloc_init_open_stateowner() local 4792 clp = cstate->clp; in nfsd4_process_open1() 5436 clp = cstate->clp; in nfsd4_renew() [all …]
|
A D | nfs4recover.c | 188 crp->cr_clp = clp; in __nfsd4_create_reclaim_record_grace() 705 crp->cr_clp = clp; in nfsd4_check_legacy_client() 1114 clp->cl_name.len); in nfsd4_cld_create() 1156 clp->cl_name.len); in nfsd4_cld_create_v2() 1217 clp->cl_name.len); in nfsd4_cld_remove() 1260 clp->cl_name.len); in nfsd4_cld_check_v0() 1317 crp->cr_clp = clp; in nfsd4_cld_check() 1387 crp->cr_clp = clp; in nfsd4_cld_check_v2() 1909 hexid = bin_to_hex_dup(clp->cl_name.data, clp->cl_name.len); in nfsd4_umh_cltrack_create() 1936 hexid = bin_to_hex_dup(clp->cl_name.data, clp->cl_name.len); in nfsd4_umh_cltrack_remove() [all …]
|
A D | trace.h | 546 TP_ARGS(clp, rqstp), 575 TP_ARGS(clp, rqstp, verf), 603 TP_ARGS(clp), 620 __assign_str_len(name, clp->cl_name.data, clp->cl_name.len); 632 TP_ARGS(clp)) 841 TP_ARGS(clp, conn), 864 TP_ARGS(clp), 885 TP_ARGS(clp), 907 TP_ARGS(clp)) 961 TP_ARGS(clp, error), [all …]
|
A D | nfs4layouts.c | 164 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 D | blocklayout.c | 167 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 D | state.h | 659 extern void nfsd4_probe_callback(struct nfs4_client *clp); 660 extern void nfsd4_probe_callback_sync(struct nfs4_client *clp); 661 extern void nfsd4_change_callback(struct nfs4_client *clp, struct nfs4_cb_conn *); 662 extern void nfsd4_init_cb(struct nfsd4_callback *cb, struct nfs4_client *clp, 668 extern void nfsd4_shutdown_copy(struct nfs4_client *clp); 677 find_async_copy(struct nfs4_client *clp, stateid_t *staetid); 681 struct nfs4_client *clp, 695 extern void nfsd4_client_record_create(struct nfs4_client *clp); 696 extern void nfsd4_client_record_remove(struct nfs4_client *clp); 697 extern int nfsd4_client_record_check(struct nfs4_client *clp);
|
A D | pnfs.h | 27 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/drivers/media/usb/pvrusb2/ |
A D | pvrusb2-sysfs.c | 492 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 …]
|