Lines Matching defs:tcon
26 struct cifs_tcon *tcon,
30 cd->resource_id = cpu_to_le64(tcon->resource_id);
31 cd->vol_create_time = tcon->vol_create_time;
32 cd->vol_serial_number = cpu_to_le32(tcon->vol_serial_number);
35 int cifs_fscache_get_super_cookie(struct cifs_tcon *tcon)
38 struct TCP_Server_Info *server = tcon->ses->server;
46 if (tcon->fscache_acquired)
49 mutex_lock(&tcon->fscache_lock);
50 if (tcon->fscache_acquired) {
51 mutex_unlock(&tcon->fscache_lock);
54 tcon->fscache_acquired = true;
56 tcon->fscache = NULL;
62 mutex_unlock(&tcon->fscache_lock);
69 sharename = extract_sharename(tcon->tree_name);
71 mutex_unlock(&tcon->fscache_lock);
85 cifs_fscache_fill_volume_coherency(tcon, &cd);
97 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count,
100 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count,
104 tcon->fscache = vcookie;
110 mutex_unlock(&tcon->fscache_lock);
114 void cifs_fscache_release_super_cookie(struct cifs_tcon *tcon)
118 cifs_dbg(FYI, "%s: (0x%p)\n", __func__, tcon->fscache);
120 cifs_fscache_fill_volume_coherency(tcon, &cd);
121 fscache_relinquish_volume(tcon->fscache, &cd, false);
122 tcon->fscache = NULL;
123 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count,
133 struct cifs_tcon *tcon = cifs_sb_master_tcon(cifs_sb);
141 fscache_acquire_cookie(tcon->fscache, 0,