/Linux-v5.4/fs/afs/ |
D | server.c | 37 struct afs_server *server = NULL; in afs_find_server() local 50 if (server) in afs_find_server() 51 afs_put_server(net, server, afs_server_trace_put_find_rsq); in afs_find_server() 52 server = NULL; in afs_find_server() 56 hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { in afs_find_server() 57 alist = rcu_dereference(server->addresses); in afs_find_server() 71 hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) { in afs_find_server() 72 alist = rcu_dereference(server->addresses); in afs_find_server() 86 server = NULL; in afs_find_server() 88 if (server && !atomic_inc_not_zero(&server->usage)) in afs_find_server() [all …]
|
D | fs_probe.c | 14 static bool afs_fs_probe_done(struct afs_server *server) in afs_fs_probe_done() argument 16 if (!atomic_dec_and_test(&server->probe_outstanding)) in afs_fs_probe_done() 19 wake_up_var(&server->probe_outstanding); in afs_fs_probe_done() 20 clear_bit_unlock(AFS_SERVER_FL_PROBING, &server->flags); in afs_fs_probe_done() 21 wake_up_bit(&server->flags, AFS_SERVER_FL_PROBING); in afs_fs_probe_done() 32 struct afs_server *server = call->server; in afs_fileserver_probe_result() local 40 _enter("%pU,%u", &server->uuid, index); in afs_fileserver_probe_result() 42 spin_lock(&server->probe_lock); in afs_fileserver_probe_result() 46 server->probe.error = 0; in afs_fileserver_probe_result() 49 if (!server->probe.responded) { in afs_fileserver_probe_result() [all …]
|
D | vl_probe.c | 14 static bool afs_vl_probe_done(struct afs_vlserver *server) in afs_vl_probe_done() argument 16 if (!atomic_dec_and_test(&server->probe_outstanding)) in afs_vl_probe_done() 19 wake_up_var(&server->probe_outstanding); in afs_vl_probe_done() 20 clear_bit_unlock(AFS_VLSERVER_FL_PROBING, &server->flags); in afs_vl_probe_done() 21 wake_up_bit(&server->flags, AFS_VLSERVER_FL_PROBING); in afs_vl_probe_done() 32 struct afs_vlserver *server = call->vlserver; in afs_vlserver_probe_result() local 40 _enter("%s,%u,%u,%d,%d", server->name, server_index, index, ret, call->abort_code); in afs_vlserver_probe_result() 42 spin_lock(&server->probe_lock); in afs_vlserver_probe_result() 46 server->probe.error = 0; in afs_vlserver_probe_result() 49 if (!server->probe.responded) { in afs_vlserver_probe_result() [all …]
|
D | server_list.c | 19 afs_put_server(net, slist->servers[i].server, in afs_put_serverlist() 35 struct afs_server *server; in afs_alloc_server_list() local 54 server = afs_lookup_server(cell, key, &vldb->fs_server[i]); in afs_alloc_server_list() 55 if (IS_ERR(server)) { in afs_alloc_server_list() 56 ret = PTR_ERR(server); in afs_alloc_server_list() 65 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list() 66 &server->uuid, in afs_alloc_server_list() 67 sizeof(server->uuid)) >= 0) in afs_alloc_server_list() 70 if (slist->servers[j].server == server) { in afs_alloc_server_list() 71 afs_put_server(cell->net, server, in afs_alloc_server_list() [all …]
|
D | callback.c | 26 static struct afs_cb_interest *afs_create_interest(struct afs_server *server, in afs_create_interest() argument 51 new->server = afs_get_server(server, afs_server_trace_get_new_cbi); in afs_create_interest() 54 write_lock(&server->cb_break_lock); in afs_create_interest() 56 for (pp = &server->cb_volumes.first; *pp; pp = &(*pp)->next) { in afs_create_interest() 78 write_unlock(&server->cb_break_lock); in afs_create_interest() 94 struct afs_server *server = entry->server; in afs_register_server_cb_interest() local 115 if (cbi && vcbi->server == cbi->server) { in afs_register_server_cb_interest() 126 if (!cbi && vcbi->server == server) { in afs_register_server_cb_interest() 141 new = afs_create_interest(server, vnode); in afs_register_server_cb_interest() 167 vnode->cb_s_break = cbi->server->cb_s_break; in afs_register_server_cb_interest() [all …]
|
D | cmservice.c | 155 static int afs_record_cm_probe(struct afs_call *call, struct afs_server *server) in afs_record_cm_probe() argument 159 if (test_bit(AFS_SERVER_FL_HAVE_EPOCH, &server->flags) && in afs_record_cm_probe() 160 !test_bit(AFS_SERVER_FL_PROBING, &server->flags)) { in afs_record_cm_probe() 161 if (server->cm_epoch == call->epoch) in afs_record_cm_probe() 164 if (!server->probe.said_rebooted) { in afs_record_cm_probe() 165 pr_notice("kAFS: FS rebooted %pU\n", &server->uuid); in afs_record_cm_probe() 166 server->probe.said_rebooted = true; in afs_record_cm_probe() 170 spin_lock(&server->probe_lock); in afs_record_cm_probe() 172 if (!test_bit(AFS_SERVER_FL_HAVE_EPOCH, &server->flags)) { in afs_record_cm_probe() 173 server->cm_epoch = call->epoch; in afs_record_cm_probe() [all …]
|
D | vl_list.c | 73 afs_put_vlserver(net, vllist->servers[i].server); in afs_put_vlserverlist() 164 struct afs_vlserver *server; in afs_extract_vlserver_list() local 232 server = NULL; in afs_extract_vlserver_list() 234 struct afs_vlserver *p = previous->servers[i].server; in afs_extract_vlserver_list() 239 server = afs_get_vlserver(p); in afs_extract_vlserver_list() 244 if (!server) { in afs_extract_vlserver_list() 246 server = afs_alloc_vlserver(b, bs.name_len, bs.port); in afs_extract_vlserver_list() 247 if (!server) in afs_extract_vlserver_list() 265 afs_put_vlserver(cell->net, server); in afs_extract_vlserver_list() 274 if (!rcu_access_pointer(server->addresses)) { in afs_extract_vlserver_list() [all …]
|
/Linux-v5.4/fs/cifs/ |
D | transport.c | 54 AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in AllocMidQEntry() argument 58 if (server == NULL) { in AllocMidQEntry() 73 temp->server = server; in AllocMidQEntry() 92 __le16 command = midEntry->server->vals->lock_cmd; in _cifs_mid_q_entry_release() 96 struct TCP_Server_Info *server = midEntry->server; in _cifs_mid_q_entry_release() local 111 if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { in _cifs_mid_q_entry_release() 112 server->slowest_cmd[smb_cmd] = roundtrip_time; in _cifs_mid_q_entry_release() 113 server->fastest_cmd[smb_cmd] = roundtrip_time; in _cifs_mid_q_entry_release() 115 if (server->slowest_cmd[smb_cmd] < roundtrip_time) in _cifs_mid_q_entry_release() 116 server->slowest_cmd[smb_cmd] = roundtrip_time; in _cifs_mid_q_entry_release() [all …]
|
D | cifsencrypt.c | 41 struct TCP_Server_Info *server, char *signature, in __cifs_calc_signature() argument 48 int is_smb2 = server->vals->header_preamble_size == 0; in __cifs_calc_signature() 113 struct TCP_Server_Info *server, char *signature) in cifs_calc_signature() argument 117 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature() 120 rc = cifs_alloc_hash("md5", &server->secmech.md5, in cifs_calc_signature() 121 &server->secmech.sdescmd5); in cifs_calc_signature() 125 rc = crypto_shash_init(&server->secmech.sdescmd5->shash); in cifs_calc_signature() 131 rc = crypto_shash_update(&server->secmech.sdescmd5->shash, in cifs_calc_signature() 132 server->session_key.response, server->session_key.len); in cifs_calc_signature() 138 return __cifs_calc_signature(rqst, server, signature, in cifs_calc_signature() [all …]
|
D | smb2transport.c | 44 smb2_crypto_shash_allocate(struct TCP_Server_Info *server) in smb2_crypto_shash_allocate() argument 47 &server->secmech.hmacsha256, in smb2_crypto_shash_allocate() 48 &server->secmech.sdeschmacsha256); in smb2_crypto_shash_allocate() 52 smb3_crypto_shash_allocate(struct TCP_Server_Info *server) in smb3_crypto_shash_allocate() argument 54 struct cifs_secmech *p = &server->secmech; in smb3_crypto_shash_allocate() 74 smb311_crypto_shash_allocate(struct TCP_Server_Info *server) in smb311_crypto_shash_allocate() argument 76 struct cifs_secmech *p = &server->secmech; in smb311_crypto_shash_allocate() 102 smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) in smb2_find_smb_ses_unlocked() argument 106 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { in smb2_find_smb_ses_unlocked() 116 smb2_find_smb_ses(struct TCP_Server_Info *server, __u64 ses_id) in smb2_find_smb_ses() argument [all …]
|
D | connect.c | 334 static int ip_connect(struct TCP_Server_Info *server); 335 static int generic_ip_connect(struct TCP_Server_Info *server); 347 static int reconn_set_ipaddr(struct TCP_Server_Info *server) in reconn_set_ipaddr() argument 353 if (!server->hostname) in reconn_set_ipaddr() 356 len = strlen(server->hostname) + 3; in reconn_set_ipaddr() 363 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr() 370 __func__, server->hostname, rc); in reconn_set_ipaddr() 374 rc = cifs_convert_address((struct sockaddr *)&server->dstaddr, ipaddr, in reconn_set_ipaddr() 381 static inline int reconn_set_ipaddr(struct TCP_Server_Info *server) in reconn_set_ipaddr() argument 389 struct TCP_Server_Info *server; member [all …]
|
D | cifs_debug.c | 35 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument 44 server->ops->calc_smb_size(smb, server)); in cifs_dump_detail() 48 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument 54 if (server == NULL) in cifs_dump_mids() 59 list_for_each(tmp, &server->pending_mid_q) { in cifs_dump_mids() 77 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids() 116 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon() 117 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon() 146 struct TCP_Server_Info *server; in cifs_debug_files_proc_show() local 161 server = list_entry(stmp, struct TCP_Server_Info, in cifs_debug_files_proc_show() [all …]
|
D | smb2ops.c | 27 change_conf(struct TCP_Server_Info *server) in change_conf() argument 29 server->credits += server->echo_credits + server->oplock_credits; in change_conf() 30 server->oplock_credits = server->echo_credits = 0; in change_conf() 31 switch (server->credits) { in change_conf() 35 server->echoes = false; in change_conf() 36 server->oplocks = false; in change_conf() 39 server->echoes = true; in change_conf() 40 server->oplocks = false; in change_conf() 41 server->echo_credits = 1; in change_conf() 44 server->echoes = true; in change_conf() [all …]
|
D | cifsglob.h | 240 void (*add_credits)(struct TCP_Server_Info *server, 247 void (*revert_current_mid)(struct TCP_Server_Info *server, 399 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server); 469 int (*adjust_credits)(struct TCP_Server_Info *server, 526 #define HEADER_SIZE(server) (server->vals->header_size) argument 527 #define MAX_HEADER_SIZE(server) (server->vals->max_header_size) argument 778 in_flight(struct TCP_Server_Info *server) in in_flight() argument 781 spin_lock(&server->req_lock); in in_flight() 782 num = server->in_flight; in in_flight() 783 spin_unlock(&server->req_lock); in in_flight() [all …]
|
D | smb2pdu.c | 94 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 106 if (tcon && tcon->ses && tcon->ses->server) { in smb2_hdr_assemble() 107 struct TCP_Server_Info *server = tcon->ses->server; in smb2_hdr_assemble() local 109 spin_lock(&server->req_lock); in smb2_hdr_assemble() 111 if (server->credits >= server->max_credits) in smb2_hdr_assemble() 115 min_t(int, server->max_credits - in smb2_hdr_assemble() 116 server->credits, 10)); in smb2_hdr_assemble() 117 spin_unlock(&server->req_lock); in smb2_hdr_assemble() 128 if ((tcon->ses) && (tcon->ses->server) && in smb2_hdr_assemble() 129 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) in smb2_hdr_assemble() [all …]
|
D | file.c | 185 struct TCP_Server_Info *server = tcon->ses->server; in cifs_nt_open() local 188 if (!server->ops->open) in cifs_nt_open() 244 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open() 257 server->ops->close(xid, tcon, fid); in cifs_nt_open() 301 struct TCP_Server_Info *server = tcon->ses->server; in cifs_new_fileinfo() local 337 if (server->ops->is_read_op(oplock) && cifs_has_mand_locks(cinode)) { in cifs_new_fileinfo() 348 server->ops->set_fid(cfile, fid, oplock); in cifs_new_fileinfo() 405 struct TCP_Server_Info *server = tcon->ses->server; in _cifsFileInfo_put() local 425 if (server->ops->get_lease_key) in _cifsFileInfo_put() 426 server->ops->get_lease_key(inode, &fid); in _cifsFileInfo_put() [all …]
|
D | smb1ops.c | 27 send_nt_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, in send_nt_cancel() argument 39 mutex_lock(&server->srv_mutex); in send_nt_cancel() 40 rc = cifs_sign_smb(in_buf, server, &mid->sequence_number); in send_nt_cancel() 42 mutex_unlock(&server->srv_mutex); in send_nt_cancel() 51 --server->sequence_number; in send_nt_cancel() 52 rc = smb_send(server, in_buf, be32_to_cpu(in_buf->smb_buf_length)); in send_nt_cancel() 54 server->sequence_number--; in send_nt_cancel() 56 mutex_unlock(&server->srv_mutex); in send_nt_cancel() 88 cifs_find_mid(struct TCP_Server_Info *server, char *buffer) in cifs_find_mid() argument 94 list_for_each_entry(mid, &server->pending_mid_q, qhead) { in cifs_find_mid() [all …]
|
/Linux-v5.4/fs/nfs/ |
D | client.c | 213 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 215 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server() 227 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 538 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument 540 if (server->nlm_host) in nfs_destroy_server() 541 nlmclnt_done(server->nlm_host); in nfs_destroy_server() 547 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument 550 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd() 556 .noresvport = server->flags & NFS_MOUNT_NORESVPORT ? in nfs_start_lockd() 565 if ((server->flags & NFS_MOUNT_LOCAL_FLOCK) && in nfs_start_lockd() [all …]
|
D | nfs3client.c | 25 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 27 if (server->flags & NFS_MOUNT_NOACL) in nfs_init_server_aclclient() 30 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); in nfs_init_server_aclclient() 31 if (IS_ERR(server->client_acl)) in nfs_init_server_aclclient() 35 server->caps |= NFS_CAP_ACLS; in nfs_init_server_aclclient() 39 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() 42 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 44 server->flags &= ~NFS_MOUNT_NOACL; in nfs_init_server_aclclient() 45 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() 52 struct nfs_server *server = nfs_create_server(mount_info, nfs_mod); in nfs3_create_server() local [all …]
|
D | delegation.c | 311 struct nfs_server *server) in nfs_detach_delegation() argument 313 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation() 325 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_detach_delegation() local 331 return nfs_detach_delegation(nfsi, delegation, server); in nfs_inode_detach_delegation() 360 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_set_delegation() local 361 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation() 413 list_add_tail_rcu(&delegation->super_list, &server->delegations); in nfs_inode_set_delegation() 503 struct nfs_server *server; in nfs_client_return_marked_delegations() local 523 server = NFS_SERVER(place_holder); in nfs_client_return_marked_delegations() 525 server = list_entry_rcu(clp->cl_superblocks.next, in nfs_client_return_marked_delegations() [all …]
|
D | nfs4client.c | 759 static void nfs4_destroy_server(struct nfs_server *server) in nfs4_destroy_server() argument 763 nfs_server_return_all_delegations(server); in nfs4_destroy_server() 764 unset_pnfs_layoutdriver(server); in nfs4_destroy_server() 765 nfs4_purge_state_owners(server, &freeme); in nfs4_destroy_server() 859 static int nfs4_set_client(struct nfs_server *server, in nfs4_set_client() argument 878 .cred = server->cred, in nfs4_set_client() 884 if (server->flags & NFS_MOUNT_NORESVPORT) in nfs4_set_client() 886 if (server->options & NFS_OPTION_MIGRATION) in nfs4_set_client() 888 if (test_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status)) in nfs4_set_client() 890 server->port = rpc_get_port(addr); in nfs4_set_client() [all …]
|
D | nfs4proc.c | 95 static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *… 137 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument 140 return server->attr_bitmask; in nfs4_bitmask() 142 return server->attr_bitmask_nl; in nfs4_bitmask() 153 nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument 154 { return server->attr_bitmask; } in nfs4_bitmask() 362 static void nfs4_test_and_free_stateid(struct nfs_server *server, in nfs4_test_and_free_stateid() argument 366 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid() 368 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 371 static void __nfs4_free_revoked_stateid(struct nfs_server *server, in __nfs4_free_revoked_stateid() argument [all …]
|
D | pnfs_dev.c | 95 nfs4_get_device_info(struct nfs_server *server, in nfs4_get_device_info() argument 110 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; in nfs4_get_device_info() 111 if (server->pnfs_curr_ld->max_deviceinfo_size && in nfs4_get_device_info() 112 server->pnfs_curr_ld->max_deviceinfo_size < max_resp_sz) in nfs4_get_device_info() 113 max_resp_sz = server->pnfs_curr_ld->max_deviceinfo_size; in nfs4_get_device_info() 116 __func__, server, max_resp_sz, max_pages); in nfs4_get_device_info() 133 pdev->layout_type = server->pnfs_curr_ld->id; in nfs4_get_device_info() 140 rc = nfs4_proc_getdeviceinfo(server, pdev, cred); in nfs4_get_device_info() 149 d = server->pnfs_curr_ld->alloc_deviceid_node(server, pdev, in nfs4_get_device_info() 171 __nfs4_find_get_deviceid(struct nfs_server *server, in __nfs4_find_get_deviceid() argument [all …]
|
/Linux-v5.4/arch/powerpc/sysdev/xics/ |
D | ics-opal.c | 30 static int ics_opal_mangle_server(int server) in ics_opal_mangle_server() argument 33 return server << 2; in ics_opal_mangle_server() 36 static int ics_opal_unmangle_server(int server) in ics_opal_unmangle_server() argument 39 return server >> 2; in ics_opal_unmangle_server() 46 int server; in ics_opal_unmask_irq() local 53 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq() 54 server = ics_opal_mangle_server(server); in ics_opal_unmask_irq() 56 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 60 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq() 82 int server = ics_opal_mangle_server(xics_default_server); in ics_opal_mask_real_irq() local [all …]
|
/Linux-v5.4/fs/nfsd/ |
D | Kconfig | 3 tristate "NFS server support" 15 protocol. To compile the NFS server support as a module, 18 You may choose to use a user-space NFS server instead, in which 24 the Linux NFS server implementation is available via the 28 available to clients mounting the NFS server on this system. 39 bool "NFS server support for NFS version 3" 42 This option enables support in your system's NFS server for 48 bool "NFS server support for the NFSv3 ACL protocol extension" 59 This option enables support in your system's NFS server for the 61 POSIX ACLs on files exported by your system's NFS server. NFS [all …]
|