Lines Matching full:tcon

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