Lines Matching full:tcon

140 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,  in open_cached_dir()  argument
165 if (tcon == NULL || tcon->cfids == NULL || tcon->nohandlecache || in open_cached_dir()
166 is_smb1_server(tcon->ses->server) || (dir_cache_timeout == 0)) in open_cached_dir()
169 ses = tcon->ses; in open_cached_dir()
170 cfids = tcon->cfids; in open_cached_dir()
188 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs); in open_cached_dir()
230 cfid->tcon = tcon; in open_cached_dir()
239 if (smb3_encryption_required(tcon)) in open_cached_dir()
255 .tcon = tcon, in open_cached_dir()
265 rc = SMB2_open_init(tcon, server, in open_cached_dir()
269 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir()
275 rc = SMB2_query_info_init(tcon, server, in open_cached_dir()
296 tcon->need_reconnect = true; in open_cached_dir()
298 tcon->tree_name); in open_cached_dir()
378 atomic_inc(&tcon->num_remote_opens); in open_cached_dir()
383 smb2_should_replay(tcon, &retries, &cur_sleep)) in open_cached_dir()
389 int open_cached_dir_by_dentry(struct cifs_tcon *tcon, in open_cached_dir_by_dentry() argument
394 struct cached_fids *cfids = tcon->cfids; in open_cached_dir_by_dentry()
432 rc = SMB2_close(0, cfid->tcon, cfid->fid.persistent_fid, in smb2_close_cached_fid()
441 void drop_cached_dir_by_name(const unsigned int xid, struct cifs_tcon *tcon, in drop_cached_dir_by_name() argument
447 rc = open_cached_dir(xid, tcon, name, cifs_sb, true, &cfid); in drop_cached_dir_by_name()
475 struct cifs_tcon *tcon; in close_all_cached_dirs() local
484 tcon = tlink_tcon(tlink); in close_all_cached_dirs()
485 if (IS_ERR(tcon)) in close_all_cached_dirs()
487 cfids = tcon->cfids; in close_all_cached_dirs()
517 * Invalidate all cached dirs when a TCON has been reset
520 void invalidate_all_cached_dirs(struct cifs_tcon *tcon) in invalidate_all_cached_dirs() argument
522 struct cached_fids *cfids = tcon->cfids; in invalidate_all_cached_dirs()
561 struct cifs_tcon *tcon = cfid->tcon; in cached_dir_offload_close() local
566 cifs_put_tcon(tcon, netfs_trace_tcon_ref_put_cached_close); in cached_dir_offload_close()
574 * tcon.
591 int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]) in cached_dir_lease_break() argument
593 struct cached_fids *cfids = tcon->cfids; in cached_dir_lease_break()
615 ++tcon->tc_count; in cached_dir_lease_break()
616 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cached_dir_lease_break()
732 ++cfid->tcon->tc_count; in cfids_laundromat_worker()
733 trace_smb3_tcon_ref(cfid->tcon->debug_id, cfid->tcon->tc_count, in cfids_laundromat_worker()
768 * Called from tconInfoFree when we are tearing down the tcon.