/linux-6.1.9/fs/cifs/ |
D | transport.c | 42 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid() argument 46 if (server == NULL) { in alloc_mid() 61 temp->server = server; in alloc_mid() 82 __le16 command = midEntry->server->vals->lock_cmd; in __release_mid() 87 struct TCP_Server_Info *server = midEntry->server; in __release_mid() local 91 server->ops->handle_cancelled_mid) in __release_mid() 92 server->ops->handle_cancelled_mid(midEntry, server); in __release_mid() 107 if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { in __release_mid() 108 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid() 109 server->fastest_cmd[smb_cmd] = roundtrip_time; in __release_mid() [all …]
|
D | connect.c | 68 struct TCP_Server_Info *server; member 78 static int ip_connect(struct TCP_Server_Info *server); 79 static int generic_ip_connect(struct TCP_Server_Info *server); 89 static int reconn_set_ipaddr_from_hostname(struct TCP_Server_Info *server) in reconn_set_ipaddr_from_hostname() argument 97 if (!server->hostname) in reconn_set_ipaddr_from_hostname() 101 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname() 104 len = strlen(server->hostname) + 3; in reconn_set_ipaddr_from_hostname() 111 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr_from_hostname() 118 __func__, server->hostname, rc); in reconn_set_ipaddr_from_hostname() 122 spin_lock(&server->srv_lock); in reconn_set_ipaddr_from_hostname() [all …]
|
D | smb2transport.c | 30 smb3_crypto_shash_allocate(struct TCP_Server_Info *server) in smb3_crypto_shash_allocate() argument 32 struct cifs_secmech *p = &server->secmech; in smb3_crypto_shash_allocate() 50 smb311_crypto_shash_allocate(struct TCP_Server_Info *server) in smb311_crypto_shash_allocate() argument 52 struct cifs_secmech *p = &server->secmech; in smb311_crypto_shash_allocate() 77 int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key) in smb2_get_sign_key() argument 88 pserver = CIFS_SERVER_IS_CHAN(server) ? server->primary_server : server; in smb2_get_sign_key() 101 if (cifs_chan_needs_reconnect(ses, server) && in smb2_get_sign_key() 119 if (chan->server == server) { in smb2_get_sign_key() 138 smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) in smb2_find_smb_ses_unlocked() argument 144 pserver = CIFS_SERVER_IS_CHAN(server) ? server->primary_server : server; in smb2_find_smb_ses_unlocked() [all …]
|
D | cifs_debug.c | 36 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument 45 server->ops->calc_smb_size(smb)); in cifs_dump_detail() 49 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument 54 if (server == NULL) in cifs_dump_mids() 58 spin_lock(&server->mid_lock); in cifs_dump_mids() 59 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids() 76 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids() 81 spin_unlock(&server->mid_lock); in cifs_dump_mids() 115 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon() 116 tcon->ses->server->ops->dump_share_caps(m, tcon); in cifs_debug_tcon() [all …]
|
D | cifsencrypt.c | 28 struct TCP_Server_Info *server, char *signature, in __cifs_calc_signature() argument 37 if (!is_smb1(server)) { in __cifs_calc_signature() 99 struct TCP_Server_Info *server, char *signature) in cifs_calc_signature() argument 103 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature() 106 rc = cifs_alloc_hash("md5", &server->secmech.md5); in cifs_calc_signature() 110 rc = crypto_shash_init(server->secmech.md5); in cifs_calc_signature() 116 rc = crypto_shash_update(server->secmech.md5, in cifs_calc_signature() 117 server->session_key.response, server->session_key.len); in cifs_calc_signature() 123 return __cifs_calc_signature(rqst, server, signature, server->secmech.md5); in cifs_calc_signature() 127 int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, in cifs_sign_rqst() argument [all …]
|
D | smb2pdu.c | 81 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 89 struct TCP_Server_Info *server) in smb2_hdr_assemble() argument 94 if (server) { in smb2_hdr_assemble() 95 spin_lock(&server->req_lock); in smb2_hdr_assemble() 97 if (server->credits >= server->max_credits) in smb2_hdr_assemble() 101 min_t(int, server->max_credits - in smb2_hdr_assemble() 102 server->credits, 10)); in smb2_hdr_assemble() 103 spin_unlock(&server->req_lock); in smb2_hdr_assemble() 114 if (server && (server->capabilities & SMB2_GLOBAL_CAP_LARGE_MTU)) in smb2_hdr_assemble() 136 if (server && server->sign && !smb3_encryption_required(tcon)) in smb2_hdr_assemble() [all …]
|
D | sess.c | 31 is_server_using_iface(struct TCP_Server_Info *server, in is_server_using_iface() argument 36 struct sockaddr_in *s4 = (struct sockaddr_in *)&server->dstaddr; in is_server_using_iface() 37 struct sockaddr_in6 *s6 = (struct sockaddr_in6 *)&server->dstaddr; in is_server_using_iface() 39 if (server->dstaddr.ss_family != iface->sockaddr.ss_family) in is_server_using_iface() 41 if (server->dstaddr.ss_family == AF_INET) { in is_server_using_iface() 44 } else if (server->dstaddr.ss_family == AF_INET6) { in is_server_using_iface() 74 struct TCP_Server_Info *server) in cifs_ses_get_chan_index() argument 79 if (ses->chans[i].server == server) in cifs_ses_get_chan_index() 84 if (server) in cifs_ses_get_chan_index() 86 server->conn_id); in cifs_ses_get_chan_index() [all …]
|
D | smb2ops.c | 34 change_conf(struct TCP_Server_Info *server) in change_conf() argument 36 server->credits += server->echo_credits + server->oplock_credits; in change_conf() 37 server->oplock_credits = server->echo_credits = 0; in change_conf() 38 switch (server->credits) { in change_conf() 42 server->echoes = false; in change_conf() 43 server->oplocks = false; in change_conf() 46 server->echoes = true; in change_conf() 47 server->oplocks = false; in change_conf() 48 server->echo_credits = 1; in change_conf() 51 server->echoes = true; in change_conf() [all …]
|
D | cifsglob.h | 256 void (*add_credits)(struct TCP_Server_Info *server, 263 void (*revert_current_mid)(struct TCP_Server_Info *server, 287 void (*downgrade_oplock)(struct TCP_Server_Info *server, 298 struct TCP_Server_Info *server); 305 struct TCP_Server_Info *server, 427 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server); 451 struct TCP_Server_Info *server); 501 int (*adjust_credits)(struct TCP_Server_Info *server, 563 #define HEADER_SIZE(server) (server->vals->header_size) argument 564 #define MAX_HEADER_SIZE(server) (server->vals->max_header_size) argument [all …]
|
D | cifs_swn.h | 27 static inline bool cifs_swn_set_server_dstaddr(struct TCP_Server_Info *server) in cifs_swn_set_server_dstaddr() argument 29 if (server->use_swn_dstaddr) { in cifs_swn_set_server_dstaddr() 30 server->dstaddr = server->swn_dstaddr; in cifs_swn_set_server_dstaddr() 36 static inline void cifs_swn_reset_server_dstaddr(struct TCP_Server_Info *server) in cifs_swn_reset_server_dstaddr() argument 38 server->use_swn_dstaddr = false; in cifs_swn_reset_server_dstaddr() 48 static inline bool cifs_swn_set_server_dstaddr(struct TCP_Server_Info *server) { return false; } in cifs_swn_set_server_dstaddr() argument 49 static inline void cifs_swn_reset_server_dstaddr(struct TCP_Server_Info *server) {} in cifs_swn_reset_server_dstaddr() argument
|
/linux-6.1.9/fs/afs/ |
D | server.c | 28 struct afs_server *server = NULL; in afs_find_server() local 35 if (server) in afs_find_server() 36 afs_unuse_server_notime(net, server, afs_server_trace_put_find_rsq); in afs_find_server() 37 server = NULL; in afs_find_server() 42 hlist_for_each_entry_rcu(server, &net->fs_addresses6, addr6_link) { in afs_find_server() 43 alist = rcu_dereference(server->addresses); in afs_find_server() 58 hlist_for_each_entry_rcu(server, &net->fs_addresses4, addr4_link) { in afs_find_server() 59 alist = rcu_dereference(server->addresses); in afs_find_server() 73 server = NULL; in afs_find_server() 76 server = afs_maybe_use_server(server, afs_server_trace_get_by_addr); in afs_find_server() [all …]
|
D | fs_probe.c | 23 struct afs_server *server, bool fast) in afs_schedule_fs_probe() argument 30 atj = server->probed_at; in afs_schedule_fs_probe() 41 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server) in afs_finished_fs_probe() argument 43 bool responded = server->probe.responded; in afs_finished_fs_probe() 47 list_add_tail(&server->probe_link, &net->fs_probe_slow); in afs_finished_fs_probe() 49 server->rtt = UINT_MAX; in afs_finished_fs_probe() 50 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); in afs_finished_fs_probe() 51 list_add_tail(&server->probe_link, &net->fs_probe_fast); in afs_finished_fs_probe() 55 afs_schedule_fs_probe(net, server, !responded); in afs_finished_fs_probe() 61 static void afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server) in afs_done_one_fs_probe() argument [all …]
|
D | vl_probe.c | 18 static void afs_finished_vl_probe(struct afs_vlserver *server) in afs_finished_vl_probe() argument 20 if (!(server->probe.flags & AFS_VLSERVER_PROBE_RESPONDED)) { in afs_finished_vl_probe() 21 server->rtt = UINT_MAX; in afs_finished_vl_probe() 22 clear_bit(AFS_VLSERVER_FL_RESPONDING, &server->flags); in afs_finished_vl_probe() 25 clear_bit_unlock(AFS_VLSERVER_FL_PROBING, &server->flags); in afs_finished_vl_probe() 26 wake_up_bit(&server->flags, AFS_VLSERVER_FL_PROBING); in afs_finished_vl_probe() 32 static void afs_done_one_vl_probe(struct afs_vlserver *server, bool wake_up) in afs_done_one_vl_probe() argument 34 if (atomic_dec_and_test(&server->probe_outstanding)) { in afs_done_one_vl_probe() 35 afs_finished_vl_probe(server); in afs_done_one_vl_probe() 40 wake_up_all(&server->probe_wq); in afs_done_one_vl_probe() [all …]
|
D | server_list.c | 18 afs_unuse_server(net, slist->servers[i].server, in afs_put_serverlist() 33 struct afs_server *server; in afs_alloc_server_list() local 55 server = afs_lookup_server(cell, key, &vldb->fs_server[i], in afs_alloc_server_list() 57 if (IS_ERR(server)) { in afs_alloc_server_list() 58 ret = PTR_ERR(server); in afs_alloc_server_list() 67 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list() 68 &server->uuid, in afs_alloc_server_list() 69 sizeof(server->uuid)) >= 0) in afs_alloc_server_list() 72 if (slist->servers[j].server == server) { in afs_alloc_server_list() 73 afs_put_server(cell->net, server, in afs_alloc_server_list() [all …]
|
D | callback.c | 38 struct afs_server *server = container_of(work, struct afs_server, initcb_work); in afs_server_init_callback_work() local 40 struct afs_cell *cell = server->cell; in afs_server_init_callback_work() 45 if (vnode->cb_server == server) { in afs_server_init_callback_work() 58 void afs_init_callback_state(struct afs_server *server) in afs_init_callback_state() argument 62 server->cb_s_break++; in afs_init_callback_state() 63 atomic_inc(&server->cell->fs_s_break); in afs_init_callback_state() 64 if (!list_empty(&server->cell->fs_open_mmaps)) in afs_init_callback_state() 65 queue_work(system_unbound_wq, &server->initcb_work); in afs_init_callback_state() 67 } while ((server = rcu_dereference(server->uuid_next))); in afs_init_callback_state() 181 static void afs_break_some_callbacks(struct afs_server *server, in afs_break_some_callbacks() argument [all …]
|
D | rotate.c | 24 struct afs_server *server; in afs_start_fs_iteration() local 41 server = op->server_list->servers[i].server; in afs_start_fs_iteration() 42 if (server == cb_server) { in afs_start_fs_iteration() 112 struct afs_server *server; in afs_select_fileserver() local 308 op->server = NULL; in afs_select_fileserver() 335 if (op->server) { in afs_select_fileserver() 339 op->server = NULL; in afs_select_fileserver() 346 struct afs_server *s = op->server_list->servers[i].server; in afs_select_fileserver() 369 server = op->server_list->servers[op->index].server; in afs_select_fileserver() 371 if (!afs_check_server_record(op, server)) in afs_select_fileserver() [all …]
|
/linux-6.1.9/fs/nfs/ |
D | client.c | 215 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 217 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server() 229 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 548 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument 550 if (server->nlm_host) in nfs_destroy_server() 551 nlmclnt_done(server->nlm_host); in nfs_destroy_server() 557 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument 560 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd() 566 .noresvport = server->flags & NFS_MOUNT_NORESVPORT ? in nfs_start_lockd() 570 .cred = server->cred, in nfs_start_lockd() [all …]
|
D | nfs4client.c | 791 static void nfs4_destroy_server(struct nfs_server *server) in nfs4_destroy_server() argument 795 nfs_server_return_all_delegations(server); in nfs4_destroy_server() 796 unset_pnfs_layoutdriver(server); in nfs4_destroy_server() 797 nfs4_purge_state_owners(server, &freeme); in nfs4_destroy_server() 891 static int nfs4_set_client(struct nfs_server *server, in nfs4_set_client() argument 911 .cred = server->cred, in nfs4_set_client() 922 if (server->flags & NFS_MOUNT_NORESVPORT) in nfs4_set_client() 924 if (server->options & NFS_OPTION_MIGRATION) in nfs4_set_client() 926 if (test_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status)) in nfs4_set_client() 928 server->port = rpc_get_port((struct sockaddr *)addr); in nfs4_set_client() [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() 51 struct nfs_server *server = nfs_create_server(fc); in nfs3_create_server() local [all …]
|
D | delegation.c | 78 static void nfs_mark_return_delegation(struct nfs_server *server, in nfs_mark_return_delegation() argument 82 set_bit(NFS4CLNT_DELEGRETURN, &server->nfs_client->cl_state); in nfs_mark_return_delegation() 362 struct nfs_server *server) in nfs_detach_delegation() argument 364 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation() 376 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_detach_delegation() local 382 delegation = nfs_detach_delegation(nfsi, delegation, server); in nfs_inode_detach_delegation() 433 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_set_delegation() local 434 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation() 507 list_add_tail_rcu(&delegation->super_list, &server->delegations); in nfs_inode_set_delegation() 592 static int nfs_server_return_marked_delegations(struct nfs_server *server, in nfs_server_return_marked_delegations() argument [all …]
|
D | super.c | 185 struct nfs_server *server = NFS_SB(sb); in nfs_sb_active() local 189 if (atomic_inc_return(&server->active) != 1) in nfs_sb_active() 197 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive() local 199 if (atomic_dec_and_test(&server->active)) in nfs_sb_deactive() 208 struct nfs_server *server, *last = NULL; in __nfs_list_for_each_server() local 212 list_for_each_entry_rcu(server, head, client_link) { in __nfs_list_for_each_server() 213 if (!(server->super && nfs_sb_active(server->super))) in __nfs_list_for_each_server() 218 last = server; in __nfs_list_for_each_server() 219 ret = fn(server, data); in __nfs_list_for_each_server() 244 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs() local [all …]
|
D | pnfs_dev.c | 97 nfs4_get_device_info(struct nfs_server *server, in nfs4_get_device_info() argument 112 max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; in nfs4_get_device_info() 113 if (server->pnfs_curr_ld->max_deviceinfo_size && in nfs4_get_device_info() 114 server->pnfs_curr_ld->max_deviceinfo_size < max_resp_sz) in nfs4_get_device_info() 115 max_resp_sz = server->pnfs_curr_ld->max_deviceinfo_size; in nfs4_get_device_info() 118 __func__, server, max_resp_sz, max_pages); in nfs4_get_device_info() 135 pdev->layout_type = server->pnfs_curr_ld->id; in nfs4_get_device_info() 142 rc = nfs4_proc_getdeviceinfo(server, pdev, cred); in nfs4_get_device_info() 151 d = server->pnfs_curr_ld->alloc_deviceid_node(server, pdev, in nfs4_get_device_info() 173 __nfs4_find_get_deviceid(struct nfs_server *server, in __nfs4_find_get_deviceid() argument [all …]
|
D | nfs4proc.c | 96 static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, 144 static inline u32 *nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument 147 return server->attr_bitmask; in nfs4_bitmask() 149 return server->attr_bitmask_nl; in nfs4_bitmask() 160 nfs4_bitmask(struct nfs_server *server, struct nfs4_label *label) in nfs4_bitmask() argument 161 { return server->attr_bitmask; } in nfs4_bitmask() 379 static void nfs4_test_and_free_stateid(struct nfs_server *server, in nfs4_test_and_free_stateid() argument 383 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid() 385 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 388 static void __nfs4_free_revoked_stateid(struct nfs_server *server, in __nfs4_free_revoked_stateid() argument [all …]
|
/linux-6.1.9/arch/powerpc/sysdev/xics/ |
D | ics-opal.c | 29 static int ics_opal_mangle_server(int server) in ics_opal_mangle_server() argument 32 return server << 2; in ics_opal_mangle_server() 35 static int ics_opal_unmangle_server(int server) in ics_opal_unmangle_server() argument 38 return server >> 2; in ics_opal_unmangle_server() 45 int server; in ics_opal_unmask_irq() local 52 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq() 53 server = ics_opal_mangle_server(server); in ics_opal_unmask_irq() 55 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 59 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq() 70 int server = ics_opal_mangle_server(xics_default_server); in ics_opal_mask_real_irq() local [all …]
|
/linux-6.1.9/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 the NFSv3 ACL protocol extension" 50 This option enables support in your system's NFS server for the 52 POSIX ACLs on files exported by your system's NFS server. NFS 54 access and modify ACLs on your NFS server. 56 To store ACLs on your NFS server, you also need to enable ACL- [all …]
|