Lines Matching full:tcon

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