Lines Matching defs:tcon
125 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,
149 if (tcon == NULL || tcon->cfids == NULL || tcon->nohandlecache ||
150 is_smb1_server(tcon->ses->server) || (dir_cache_timeout == 0))
153 ses = tcon->ses;
155 cfids = tcon->cfids;
167 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs);
217 if (smb3_encryption_required(tcon))
233 .tcon = tcon,
241 rc = SMB2_open_init(tcon, server,
245 smb2_set_next_command(tcon, &rqst[0]);
251 rc = SMB2_query_info_init(tcon, server,
276 tcon->need_reconnect = true;
278 tcon->tree_name);
282 cfid->tcon = tcon;
362 SMB2_close(0, cfid->tcon, cfid->fid.persistent_fid,
367 atomic_inc(&tcon->num_remote_opens);
374 int open_cached_dir_by_dentry(struct cifs_tcon *tcon,
379 struct cached_fids *cfids = tcon->cfids;
416 SMB2_close(0, cfid->tcon, cfid->fid.persistent_fid,
418 atomic_dec(&cfid->tcon->num_remote_opens);
424 void drop_cached_dir_by_name(const unsigned int xid, struct cifs_tcon *tcon,
430 rc = open_cached_dir(xid, tcon, name, cifs_sb, true, &cfid);
458 struct cifs_tcon *tcon;
464 tcon = tlink_tcon(tlink);
465 if (IS_ERR(tcon))
467 cfids = tcon->cfids;
481 void invalidate_all_cached_dirs(struct cifs_tcon *tcon)
483 struct cached_fids *cfids = tcon->cfids;
531 int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16])
533 struct cached_fids *cfids = tcon->cfids;
670 * Called from tconInfoFree when we are tearing down the tcon.