/linux-6.12.1/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() 41 hlist_for_each_entry_rcu(server, &net->fs_addresses, addr_link) { in afs_find_server() 42 estate = rcu_dereference(server->endpoint_state); in afs_find_server() 49 server = NULL; in afs_find_server() 52 server = afs_maybe_use_server(server, afs_server_trace_get_by_addr); in afs_find_server() 59 return server; in afs_find_server() 67 struct afs_server *server = NULL; in afs_find_server_by_uuid() local [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 | fs_probe.c | 59 struct afs_server *server, bool fast) in afs_schedule_fs_probe() argument 66 atj = server->probed_at; in afs_schedule_fs_probe() 77 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server, in afs_finished_fs_probe() argument 84 list_add_tail(&server->probe_link, &net->fs_probe_slow); in afs_finished_fs_probe() 86 server->rtt = UINT_MAX; in afs_finished_fs_probe() 87 clear_bit(AFS_SERVER_FL_RESPONDING, &server->flags); in afs_finished_fs_probe() 88 list_add_tail(&server->probe_link, &net->fs_probe_fast); in afs_finished_fs_probe() 93 afs_schedule_fs_probe(net, server, !responded); in afs_finished_fs_probe() 99 static void afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server, in afs_done_one_fs_probe() argument 105 afs_finished_fs_probe(net, server, estate); in afs_done_one_fs_probe() [all …]
|
D | server_list.c | 18 afs_unuse_server(net, slist->servers[i].server, in afs_put_serverlist() 32 struct afs_server *server; in afs_alloc_server_list() local 82 server = afs_lookup_server(volume->cell, key, &vldb->fs_server[i], in afs_alloc_server_list() 84 if (IS_ERR(server)) { in afs_alloc_server_list() 85 ret = PTR_ERR(server); in afs_alloc_server_list() 94 if (memcmp(&slist->servers[j].server->uuid, in afs_alloc_server_list() 95 &server->uuid, in afs_alloc_server_list() 96 sizeof(server->uuid)) >= 0) in afs_alloc_server_list() 99 if (slist->servers[j].server == server) { in afs_alloc_server_list() 100 afs_put_server(volume->cell->net, server, in afs_alloc_server_list() [all …]
|
/linux-6.12.1/fs/smb/client/ |
D | transport.c | 45 alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in alloc_mid() argument 49 if (server == NULL) { in alloc_mid() 64 temp->server = server; in alloc_mid() 85 __le16 command = midEntry->server->vals->lock_cmd; in __release_mid() 90 struct TCP_Server_Info *server = midEntry->server; in __release_mid() local 95 server->ops->handle_cancelled_mid) in __release_mid() 96 server->ops->handle_cancelled_mid(midEntry, server); in __release_mid() 111 if (atomic_read(&server->num_cmds[smb_cmd]) == 0) { in __release_mid() 112 server->slowest_cmd[smb_cmd] = roundtrip_time; in __release_mid() 113 server->fastest_cmd[smb_cmd] = roundtrip_time; in __release_mid() [all …]
|
D | connect.c | 62 static int ip_connect(struct TCP_Server_Info *server); 63 static int generic_ip_connect(struct TCP_Server_Info *server); 73 static int reconn_set_ipaddr_from_hostname(struct TCP_Server_Info *server) in reconn_set_ipaddr_from_hostname() argument 80 if (!server->hostname) in reconn_set_ipaddr_from_hostname() 84 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname() 87 len = strlen(server->hostname) + 3; in reconn_set_ipaddr_from_hostname() 94 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr_from_hostname() 96 spin_lock(&server->srv_lock); in reconn_set_ipaddr_from_hostname() 97 ss = server->dstaddr; in reconn_set_ipaddr_from_hostname() 98 spin_unlock(&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 89 pserver = SERVER_IS_CHAN(server) ? server->primary_server : server; in smb2_get_sign_key() 105 is_binding = (cifs_chan_needs_reconnect(ses, server) && in smb2_get_sign_key() 125 if (chan->server == server) { in smb2_get_sign_key() 146 smb2_find_smb_ses_unlocked(struct TCP_Server_Info *server, __u64 ses_id) in smb2_find_smb_ses_unlocked() argument 152 pserver = SERVER_IS_CHAN(server) ? server->primary_server : server; in smb2_find_smb_ses_unlocked() [all …]
|
D | cifs_debug.c | 38 void cifs_dump_detail(void *buf, struct TCP_Server_Info *server) in cifs_dump_detail() argument 46 if (!server->ops->check_message(buf, server->total_read, server)) { in cifs_dump_detail() 48 server->ops->calc_smb_size(smb)); in cifs_dump_detail() 53 void cifs_dump_mids(struct TCP_Server_Info *server) in cifs_dump_mids() argument 58 if (server == NULL) in cifs_dump_mids() 62 spin_lock(&server->mid_lock); in cifs_dump_mids() 63 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids() 80 cifs_dump_detail(mid_entry->resp_buf, server); in cifs_dump_mids() 85 spin_unlock(&server->mid_lock); in cifs_dump_mids() 119 if (tcon->ses->server->ops->dump_share_caps) in cifs_debug_tcon() [all …]
|
D | cifsencrypt.c | 58 struct TCP_Server_Info *server, char *signature, in __cifs_calc_signature() argument 67 if (!is_smb1(server)) { 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() 124 rc = crypto_shash_init(server->secmech.md5); in cifs_calc_signature() 130 rc = crypto_shash_update(server->secmech.md5, in cifs_calc_signature() 131 server->session_key.response, server->session_key.len); in cifs_calc_signature() 137 return __cifs_calc_signature(rqst, server, signature, server->secmech.md5); in cifs_calc_signature() 141 int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, in cifs_sign_rqst() argument [all …]
|
D | smb2pdu.c | 84 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 87 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 95 struct TCP_Server_Info *server) in smb2_hdr_assemble() argument 103 if (server) { in smb2_hdr_assemble() 105 if (server->dialect >= SMB30_PROT_ID) { in smb2_hdr_assemble() 111 if (SERVER_IS_CHAN(server)) in smb2_hdr_assemble() 113 cpu_to_le16(server->primary_server->channel_sequence_num); in smb2_hdr_assemble() 116 cpu_to_le16(server->channel_sequence_num); in smb2_hdr_assemble() 118 spin_lock(&server->req_lock); in smb2_hdr_assemble() 120 if (server->credits >= server->max_credits) in smb2_hdr_assemble() [all …]
|
D | smb2ops.c | 36 change_conf(struct TCP_Server_Info *server) in change_conf() argument 38 server->credits += server->echo_credits + server->oplock_credits; in change_conf() 39 if (server->credits > server->max_credits) in change_conf() 40 server->credits = server->max_credits; in change_conf() 41 server->oplock_credits = server->echo_credits = 0; in change_conf() 42 switch (server->credits) { in change_conf() 46 server->echoes = false; in change_conf() 47 server->oplocks = false; in change_conf() 50 server->echoes = true; in change_conf() 51 server->oplocks = false; in change_conf() [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 (server && server->terminate) in cifs_ses_get_chan_index() 83 if (ses->chans[i].server == server) in cifs_ses_get_chan_index() 88 if (server) in cifs_ses_get_chan_index() [all …]
|
D | dfs.c | 230 if (WARN_ON(!mnt_ctx->server)) in __dfs_mount_share() 325 static int update_server_fullpath(struct TCP_Server_Info *server, struct cifs_sb_info *cifs_sb, in update_server_fullpath() argument 357 mutex_lock(&server->refpath_lock); in update_server_fullpath() 358 spin_lock(&server->srv_lock); in update_server_fullpath() 359 kfree(server->leaf_fullpath); in update_server_fullpath() 360 server->leaf_fullpath = npath; in update_server_fullpath() 361 spin_unlock(&server->srv_lock); in update_server_fullpath() 362 mutex_unlock(&server->refpath_lock); in update_server_fullpath() 367 static int target_share_matches_server(struct TCP_Server_Info *server, char *share, in target_share_matches_server() argument 378 cifs_server_lock(server); in target_share_matches_server() [all …]
|
D | cifsglob.h | 290 void (*add_credits)(struct TCP_Server_Info *server, 297 void (*revert_current_mid)(struct TCP_Server_Info *server, 321 void (*downgrade_oplock)(struct TCP_Server_Info *server, 332 struct TCP_Server_Info *server); 339 struct TCP_Server_Info *server, 476 bool (*is_status_pending)(char *buf, struct TCP_Server_Info *server); 500 struct TCP_Server_Info *server); 550 int (*adjust_credits)(struct TCP_Server_Info *server, 565 int (*next_header)(struct TCP_Server_Info *server, char *buf, 622 #define HEADER_SIZE(server) (server->vals->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
|
D | file.c | 53 struct TCP_Server_Info *server; in cifs_prepare_write() local 63 server = cifs_pick_channel(tlink_tcon(open_file->tlink)->ses); in cifs_prepare_write() 64 wdata->server = server; in cifs_prepare_write() 77 rc = server->ops->wait_mtu_credits(server, wsize, &stream->sreq_max_len, in cifs_prepare_write() 90 server->credits, server->in_flight, in cifs_prepare_write() 95 if (server->smbd_conn) in cifs_prepare_write() 96 stream->sreq_max_segs = server->smbd_conn->max_frmr_depth; in cifs_prepare_write() 115 rc = adjust_credits(wdata->server, wdata, cifs_trace_rw_credits_issue_write_adjust); in cifs_issue_write() 123 wdata->server->ops->async_writev(wdata); in cifs_issue_write() 132 add_credits_and_wake_if(wdata->server, &wdata->credits, 0); in cifs_issue_write() [all …]
|
/linux-6.12.1/fs/nfs/ |
D | client.c | 218 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 220 rpc_init_wait_queue(&server->roc_rpcwaitq, "pNFS ROC"); in pnfs_init_server() 232 static void pnfs_init_server(struct nfs_server *server) in pnfs_init_server() argument 566 static void nfs_destroy_server(struct nfs_server *server) in nfs_destroy_server() argument 568 if (server->nlm_host) in nfs_destroy_server() 569 nlmclnt_done(server->nlm_host); in nfs_destroy_server() 575 static int nfs_start_lockd(struct nfs_server *server) in nfs_start_lockd() argument 578 struct nfs_client *clp = server->nfs_client; in nfs_start_lockd() 584 .noresvport = server->flags & NFS_MOUNT_NORESVPORT ? in nfs_start_lockd() 588 .cred = server->cred, in nfs_start_lockd() [all …]
|
D | nfs4client.c | 795 static void nfs4_destroy_server(struct nfs_server *server) in nfs4_destroy_server() argument 799 nfs_server_return_all_delegations(server); in nfs4_destroy_server() 800 unset_pnfs_layoutdriver(server); in nfs4_destroy_server() 801 nfs4_purge_state_owners(server, &freeme); in nfs4_destroy_server() 895 static int nfs4_set_client(struct nfs_server *server, in nfs4_set_client() argument 916 .cred = server->cred, in nfs4_set_client() 932 if (server->flags & NFS_MOUNT_NORESVPORT) in nfs4_set_client() 934 if (server->options & NFS_OPTION_MIGRATION) in nfs4_set_client() 936 if (test_bit(NFS_MIG_TSM_POSSIBLE, &server->mig_status)) in nfs4_set_client() 938 server->port = rpc_get_port((struct sockaddr *)addr); in nfs4_set_client() [all …]
|
D | nfs3client.c | 27 static void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 29 if (server->flags & NFS_MOUNT_NOACL) in nfs_init_server_aclclient() 32 server->client_acl = rpc_bind_new_program(server->client, &nfsacl_program, 3); in nfs_init_server_aclclient() 33 if (IS_ERR(server->client_acl)) in nfs_init_server_aclclient() 36 nfs_sysfs_link_rpc_client(server, server->client_acl, NULL); in nfs_init_server_aclclient() 39 server->caps |= NFS_CAP_ACLS; in nfs_init_server_aclclient() 43 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() 46 static inline void nfs_init_server_aclclient(struct nfs_server *server) in nfs_init_server_aclclient() argument 48 server->flags &= ~NFS_MOUNT_NOACL; in nfs_init_server_aclclient() 49 server->caps &= ~NFS_CAP_ACLS; in nfs_init_server_aclclient() [all …]
|
D | sysfs.c | 235 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in shutdown_show() local 236 bool shutdown = server->flags & NFS_MOUNT_SHUTDOWN; in shutdown_show() 244 struct nfs_server *server; in shutdown_store() local 247 server = container_of(kobj, struct nfs_server, kobj); in shutdown_store() 257 if (server->flags & NFS_MOUNT_SHUTDOWN) in shutdown_store() 260 server->flags |= NFS_MOUNT_SHUTDOWN; in shutdown_store() 261 shutdown_client(server->client); in shutdown_store() 262 shutdown_client(server->nfs_client->cl_rpcclient); in shutdown_store() 264 if (!IS_ERR(server->client_acl)) in shutdown_store() 265 shutdown_client(server->client_acl); in shutdown_store() [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() 371 struct nfs_server *server) in nfs_detach_delegation() argument 373 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation() 385 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_detach_delegation() local 391 delegation = nfs_detach_delegation(nfsi, delegation, server); in nfs_inode_detach_delegation() 442 struct nfs_server *server = NFS_SERVER(inode); in nfs_inode_set_delegation() local 443 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation() 522 list_add_tail_rcu(&delegation->super_list, &server->delegations); in nfs_inode_set_delegation() 612 static int nfs_server_return_marked_delegations(struct nfs_server *server, in nfs_server_return_marked_delegations() argument [all …]
|
D | super.c | 195 struct nfs_server *server = NFS_SB(sb); in nfs_sb_active() local 199 if (atomic_inc_return(&server->active) != 1) in nfs_sb_active() 207 struct nfs_server *server = NFS_SB(sb); in nfs_sb_deactive() local 209 if (atomic_dec_and_test(&server->active)) in nfs_sb_deactive() 218 struct nfs_server *server, *last = NULL; in __nfs_list_for_each_server() local 222 list_for_each_entry_rcu(server, head, client_link) { in __nfs_list_for_each_server() 223 if (!(server->super && nfs_sb_active(server->super))) in __nfs_list_for_each_server() 228 last = server; in __nfs_list_for_each_server() 229 ret = fn(server, data); in __nfs_list_for_each_server() 255 struct nfs_server *server = NFS_SB(dentry->d_sb); in nfs_statfs() local [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() 392 static void nfs4_test_and_free_stateid(struct nfs_server *server, in nfs4_test_and_free_stateid() argument 396 const struct nfs4_minor_version_ops *ops = server->nfs_client->cl_mvops; in nfs4_test_and_free_stateid() 398 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 401 static void __nfs4_free_revoked_stateid(struct nfs_server *server, in __nfs4_free_revoked_stateid() argument [all …]
|
/linux-6.12.1/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.12.1/fs/nfsd/ |
D | Kconfig | 3 tristate "NFS server support" 17 protocol. To compile the NFS server support as a module, 20 You may choose to use a user-space NFS server instead, in which 26 the Linux NFS server implementation is available via the 30 available to clients mounting the NFS server on this system. 37 bool "NFS server support for NFS version 2 (DEPRECATED)" 48 bool "NFS server support for the NFSv2 ACL protocol extension" 52 bool "NFS server support for the NFSv3 ACL protocol extension" 62 This option enables support in your system's NFS server for the 64 POSIX ACLs on files exported by your system's NFS server. NFS [all …]
|