/fs/cifs/ |
D | sess.c | 40 static bool is_first_ses_reconnect(struct cifs_ses *ses) in is_first_ses_reconnect() argument 45 list_for_each(tmp, &ses->server->smb_ses_list) { in is_first_ses_reconnect() 64 static __le16 get_next_vcnum(struct cifs_ses *ses) in get_next_vcnum() argument 69 __u16 max_vcs = ses->server->max_vcs; in get_next_vcnum() 81 if ((ses->need_reconnect) && is_first_ses_reconnect(ses)) in get_next_vcnum() 83 for (i = ses->server->srv_count - 1; i < max_vcs; i++) { in get_next_vcnum() 89 list_for_each(tmp, &ses->server->smb_ses_list) { in get_next_vcnum() 110 ses->vcnum = vcnum; in get_next_vcnum() 117 static __u32 cifs_ssetup_hdr(struct cifs_ses *ses, SESSION_SETUP_ANDX *pSMB) in cifs_ssetup_hdr() argument 130 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); in cifs_ssetup_hdr() [all …]
|
D | cifsencrypt.c | 207 int setup_ntlm_response(struct cifs_ses *ses, const struct nls_table *nls_cp) in setup_ntlm_response() argument 213 if (!ses) in setup_ntlm_response() 216 ses->auth_key.response = kmalloc(temp_len, GFP_KERNEL); in setup_ntlm_response() 217 if (!ses->auth_key.response) { in setup_ntlm_response() 221 ses->auth_key.len = temp_len; in setup_ntlm_response() 223 rc = SMBNTencrypt(ses->password, ses->server->cryptkey, in setup_ntlm_response() 224 ses->auth_key.response + CIFS_SESS_KEY_SIZE, nls_cp); in setup_ntlm_response() 231 rc = E_md4hash(ses->password, temp_key, nls_cp); in setup_ntlm_response() 237 rc = mdfour(ses->auth_key.response, temp_key, CIFS_SESS_KEY_SIZE); in setup_ntlm_response() 290 build_avpair_blob(struct cifs_ses *ses, const struct nls_table *nls_cp) in build_avpair_blob() argument [all …]
|
D | transport.c | 310 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() argument 313 if (ses->server->tcpStatus == CifsExiting) { in allocate_mid() 317 if (ses->server->tcpStatus == CifsNeedReconnect) { in allocate_mid() 322 if (ses->status != CifsGood) { in allocate_mid() 329 *ppmidQ = AllocMidQEntry(in_buf, ses->server); in allocate_mid() 333 list_add_tail(&(*ppmidQ)->qhead, &ses->server->pending_mid_q); in allocate_mid() 436 SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, in SendReceiveNoRsp() argument 446 rc = SendReceive2(xid, ses, iov, 1, &resp_buf_type, flags); in SendReceiveNoRsp() 548 cifs_setup_request(struct cifs_ses *ses, struct kvec *iov, in cifs_setup_request() argument 555 rc = allocate_mid(ses, hdr, &mid); in cifs_setup_request() [all …]
|
D | connect.c | 288 struct cifs_ses *ses; in cifs_reconnect() local 311 ses = list_entry(tmp, struct cifs_ses, smb_ses_list); in cifs_reconnect() 312 ses->need_reconnect = true; in cifs_reconnect() 313 ses->ipc_tid = 0; in cifs_reconnect() 314 list_for_each(tmp2, &ses->tcon_list) { in cifs_reconnect() 2288 static int match_session(struct cifs_ses *ses, struct smb_vol *vol) in match_session() argument 2290 switch (ses->server->secType) { in match_session() 2292 if (vol->cred_uid != ses->cred_uid) in match_session() 2297 if (ses->user_name == NULL) { in match_session() 2304 if (strncmp(ses->user_name, in match_session() [all …]
|
D | misc.c | 310 struct cifs_ses *ses; in header_assemble() local 331 if (treeCon->ses) { in header_assemble() 332 if (treeCon->ses->capabilities & CAP_UNICODE) in header_assemble() 334 if (treeCon->ses->capabilities & CAP_STATUS32) in header_assemble() 338 buffer->Uid = treeCon->ses->Suid; in header_assemble() 339 buffer->Mid = GetNextMid(treeCon->ses->server); in header_assemble() 365 if (current_fsuid() != treeCon->ses->linux_uid) { in header_assemble() 369 list_for_each(temp_item, &treeCon->ses->server->smb_ses_list) { in header_assemble() 370 ses = list_entry(temp_item, struct cifs_ses, smb_ses_list); in header_assemble() 371 if (ses->linux_uid == current_fsuid()) { in header_assemble() [all …]
|
D | cifs_debug.c | 114 struct cifs_ses *ses; in cifs_debug_data_proc_show() local 156 ses = list_entry(tmp2, struct cifs_ses, in cifs_debug_data_proc_show() 158 if ((ses->serverDomain == NULL) || in cifs_debug_data_proc_show() 159 (ses->serverOS == NULL) || in cifs_debug_data_proc_show() 160 (ses->serverNOS == NULL)) { in cifs_debug_data_proc_show() 162 "displayed\n\t", i, ses->serverName); in cifs_debug_data_proc_show() 168 i, ses->serverName, ses->serverDomain, in cifs_debug_data_proc_show() 169 ses->ses_count, ses->serverOS, ses->serverNOS, in cifs_debug_data_proc_show() 170 ses->capabilities, ses->status); in cifs_debug_data_proc_show() 185 list_for_each(tmp3, &ses->tcon_list) { in cifs_debug_data_proc_show() [all …]
|
D | cifssmb.c | 143 struct cifs_ses *ses; in cifs_reconnect_tcon() local 155 ses = tcon->ses; in cifs_reconnect_tcon() 156 server = ses->server; in cifs_reconnect_tcon() 195 if (!ses->need_reconnect && !tcon->need_reconnect) in cifs_reconnect_tcon() 204 mutex_lock(&ses->session_mutex); in cifs_reconnect_tcon() 205 rc = cifs_negotiate_protocol(0, ses); in cifs_reconnect_tcon() 206 if (rc == 0 && ses->need_reconnect) in cifs_reconnect_tcon() 207 rc = cifs_setup_session(0, ses, nls_codepage); in cifs_reconnect_tcon() 211 mutex_unlock(&ses->session_mutex); in cifs_reconnect_tcon() 216 rc = CIFSTCon(0, ses, tcon->treeName, tcon, nls_codepage); in cifs_reconnect_tcon() [all …]
|
D | cifsfs.c | 102 if (cifs_sb_master_tcon(cifs_sb)->ses->capabilities & CAP_LARGE_FILES) in cifs_read_super() 182 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_statfs() 190 if (rc && (tcon->ses->capabilities & CAP_NT_SMBS)) in cifs_statfs() 343 srcaddr = (struct sockaddr *)&tcon->ses->server->srcaddr; in cifs_show_options() 345 cifs_show_security(s, tcon->ses->server); in cifs_show_options() 351 else if (tcon->ses->user_name) in cifs_show_options() 352 seq_printf(s, ",username=%s", tcon->ses->user_name); in cifs_show_options() 354 if (tcon->ses->domainName) in cifs_show_options() 355 seq_printf(s, ",domain=%s", tcon->ses->domainName); in cifs_show_options() 385 cifs_show_address(s, tcon->ses->server); in cifs_show_options() [all …]
|
D | cifsproto.h | 79 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses, 114 struct cifs_ses *ses, 116 extern int CIFS_SessSetup(unsigned int xid, struct cifs_ses *ses, 184 struct cifs_ses *ses); 185 extern int cifs_setup_session(unsigned int xid, struct cifs_ses *ses, 187 extern int CIFSSMBNegotiate(unsigned int xid, struct cifs_ses *ses); 189 extern int CIFSTCon(unsigned int xid, struct cifs_ses *ses, 226 extern int CIFSGetDFSRefer(const int xid, struct cifs_ses *ses, 395 extern int CIFSSMBLogoff(const int xid, struct cifs_ses *ses);
|
D | cifs_dfs_ref.c | 280 struct cifs_ses *ses; in cifs_dfs_do_automount() local 307 ses = tlink_tcon(tlink)->ses; in cifs_dfs_do_automount() 310 rc = get_dfs_path(xid, ses, full_path + 1, cifs_sb->local_nls, in cifs_dfs_do_automount()
|
D | dir.c | 174 if (tcon->ses->server->oplocks) in cifs_create() 188 if (tcon->unix_ext && (tcon->ses->capabilities & CAP_UNIX) && in cifs_create() 250 if (tcon->ses->capabilities & CAP_NT_SMBS) in cifs_create() 521 oplock = pTcon->ses->server->oplocks ? REQ_OPLOCK : 0; in cifs_lookup()
|
D | file.c | 218 if (tcon->ses->capabilities & CAP_NT_SMBS) in cifs_nt_open() 383 if (tcon->ses->server->oplocks) in cifs_open() 389 (tcon->ses->capabilities & CAP_UNIX) && in cifs_open() 400 if (tcon->ses->serverNOS) in cifs_open() 405 tcon->ses->serverName, in cifs_open() 406 tcon->ses->serverNOS); in cifs_open() 508 if (tcon->ses->server->oplocks) in cifs_reopen_file() 513 if (tcon->unix_ext && (tcon->ses->capabilities & CAP_UNIX) && in cifs_reopen_file() 879 max_num = (tcon->ses->server->maxBuf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks() 1047 if ((tcon->ses->capabilities & CAP_UNIX) && in cifs_push_locks() [all …]
|
D | link.c | 499 && !(tcon->ses->capabilities & CAP_UNIX)) { in cifs_follow_link() 521 if ((rc != 0) && (tcon->ses->capabilities & CAP_UNIX)) in cifs_follow_link()
|
D | fscache.c | 45 struct TCP_Server_Info *server = tcon->ses->server; in cifs_fscache_get_super_cookie()
|
D | inode.c | 59 if (cifs_sb_master_tcon(cifs_sb)->ses->server->maxBuf < 527 fattr->cf_ctime.tv_sec += tcon->ses->server->timeAdj; 528 fattr->cf_mtime.tv_sec += tcon->ses->server->timeAdj; 1009 if (!(pTcon->ses->flags & CIFS_SES_NT4)) { 1207 if ((tcon->ses->capabilities & CAP_UNIX) && 1305 if ((pTcon->ses->capabilities & CAP_UNIX) &&
|
D | readdir.c | 174 int offset = cifs_sb_master_tcon(cifs_sb)->ses->server->timeAdj; in cifs_std_info_to_fattr() 268 else if ((pTcon->ses->capabilities & in initiate_cifs_search()
|
D | cifsglob.h | 435 struct cifs_ses *ses; /* pointer to session associated with */ member
|
/fs/nfsd/ |
D | nfs4state.c | 101 static void nfsd4_put_session_locked(struct nfsd4_session *ses) in nfsd4_put_session_locked() argument 103 kref_put(&ses->se_ref, free_session); in nfsd4_put_session_locked() 106 static void nfsd4_get_session(struct nfsd4_session *ses) in nfsd4_get_session() argument 108 kref_get(&ses->se_ref); in nfsd4_get_session() 635 gen_sessionid(struct nfsd4_session *ses) in gen_sessionid() argument 637 struct nfs4_client *clp = ses->se_client; in gen_sessionid() 640 sid = (struct nfsd4_sessionid *)ses->se_sessionid.data; in gen_sessionid() 661 free_session_slots(struct nfsd4_session *ses) in free_session_slots() argument 665 for (i = 0; i < ses->se_fchannel.maxreqs; i++) in free_session_slots() 666 kfree(ses->se_slots[i]); in free_session_slots() [all …]
|
D | nfs4callback.c | 634 …etup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn, struct nfsd4_session *ses) in setup_callback_client() argument 664 clp->cl_cb_session = ses; in setup_callback_client() 954 struct nfsd4_session *ses = NULL; in nfsd4_process_cb_update() local 984 ses = c->cn_session; in nfsd4_process_cb_update() 988 err = setup_callback_client(clp, &conn, ses); in nfsd4_process_cb_update()
|
D | state.h | 201 extern void nfsd4_put_session(struct nfsd4_session *ses);
|
/fs/nfs/ |
D | nfs4state.c | 199 struct nfs4_session *ses = clp->cl_session; in nfs4_end_drain_session() local 203 if (ses == NULL) in nfs4_end_drain_session() 205 tbl = &ses->fc_slot_table; in nfs4_end_drain_session() 206 if (test_and_clear_bit(NFS4_SESSION_DRAINING, &ses->session_state)) { in nfs4_end_drain_session() 233 struct nfs4_session *ses = clp->cl_session; in nfs4_begin_drain_session() local 236 set_bit(NFS4_SESSION_DRAINING, &ses->session_state); in nfs4_begin_drain_session() 238 ret = nfs4_wait_on_slot_tbl(&ses->bc_slot_table); in nfs4_begin_drain_session() 242 return nfs4_wait_on_slot_tbl(&ses->fc_slot_table); in nfs4_begin_drain_session()
|
D | callback.h | 170 extern void nfs4_check_drain_bc_complete(struct nfs4_session *ses);
|
D | nfs4proc.c | 411 static void nfs4_check_drain_fc_complete(struct nfs4_session *ses) in nfs4_check_drain_fc_complete() argument 413 if (!test_bit(NFS4_SESSION_DRAINING, &ses->session_state)) { in nfs4_check_drain_fc_complete() 414 rpc_wake_up_first(&ses->fc_slot_table.slot_tbl_waitq, in nfs4_check_drain_fc_complete() 419 if (ses->fc_slot_table.highest_used_slotid != NFS4_NO_SLOT) in nfs4_check_drain_fc_complete() 423 complete(&ses->fc_slot_table.complete); in nfs4_check_drain_fc_complete() 429 void nfs4_check_drain_bc_complete(struct nfs4_session *ses) in nfs4_check_drain_bc_complete() argument 431 if (!test_bit(NFS4_SESSION_DRAINING, &ses->session_state) || in nfs4_check_drain_bc_complete() 432 ses->bc_slot_table.highest_used_slotid != NFS4_NO_SLOT) in nfs4_check_drain_bc_complete() 435 complete(&ses->bc_slot_table.complete); in nfs4_check_drain_bc_complete() 5371 static int nfs4_setup_session_slot_tables(struct nfs4_session *ses) in nfs4_setup_session_slot_tables() argument [all …]
|