Lines Matching defs:tcon
125 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,
150 if (tcon == NULL || tcon->cfids == NULL || tcon->nohandlecache ||
151 is_smb1_server(tcon->ses->server) || (dir_cache_timeout == 0))
154 ses = tcon->ses;
155 cfids = tcon->cfids;
173 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs);
223 if (smb3_encryption_required(tcon))
239 .tcon = tcon,
249 rc = SMB2_open_init(tcon, server,
253 smb2_set_next_command(tcon, &rqst[0]);
259 rc = SMB2_query_info_init(tcon, server,
289 tcon->need_reconnect = true;
291 tcon->tree_name);
295 cfid->tcon = tcon;
375 SMB2_close(0, cfid->tcon, cfid->fid.persistent_fid,
380 atomic_inc(&tcon->num_remote_opens);
385 smb2_should_replay(tcon, &retries, &cur_sleep))
391 int open_cached_dir_by_dentry(struct cifs_tcon *tcon,
396 struct cached_fids *cfids = tcon->cfids;
434 rc = SMB2_close(0, cfid->tcon, cfid->fid.persistent_fid,
443 void drop_cached_dir_by_name(const unsigned int xid, struct cifs_tcon *tcon,
449 rc = open_cached_dir(xid, tcon, name, cifs_sb, true, &cfid);
477 struct cifs_tcon *tcon;
483 tcon = tlink_tcon(tlink);
484 if (IS_ERR(tcon))
486 cfids = tcon->cfids;
500 void invalidate_all_cached_dirs(struct cifs_tcon *tcon)
502 struct cached_fids *cfids = tcon->cfids;
550 int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16])
552 struct cached_fids *cfids = tcon->cfids;
689 * Called from tconInfoFree when we are tearing down the tcon.