Lines Matching full:tcon

140 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,  in open_cached_dir()  argument
168 if (tcon == NULL) in open_cached_dir()
171 ses = tcon->ses; in open_cached_dir()
172 cfids = tcon->cfids; in open_cached_dir()
190 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs); in open_cached_dir()
232 cfid->tcon = tcon; in open_cached_dir()
241 if (smb3_encryption_required(tcon)) in open_cached_dir()
257 .tcon = tcon, in open_cached_dir()
267 rc = SMB2_open_init(tcon, server, in open_cached_dir()
271 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir()
277 rc = SMB2_query_info_init(tcon, server, in open_cached_dir()
298 tcon->need_reconnect = true; in open_cached_dir()
300 tcon->tree_name); 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
486 tcon = tlink_tcon(tlink); in close_all_cached_dirs()
487 if (IS_ERR(tcon)) in close_all_cached_dirs()
489 cfids = tcon->cfids; in close_all_cached_dirs()
519 * Invalidate all cached dirs when a TCON has been reset
522 void invalidate_all_cached_dirs(struct cifs_tcon *tcon) in invalidate_all_cached_dirs() argument
524 struct cached_fids *cfids = tcon->cfids; in invalidate_all_cached_dirs()
563 struct cifs_tcon *tcon = cfid->tcon; in cached_dir_offload_close() local
568 cifs_put_tcon(tcon, netfs_trace_tcon_ref_put_cached_close); in cached_dir_offload_close()
576 * tcon.
593 int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]) in cached_dir_lease_break() argument
595 struct cached_fids *cfids = tcon->cfids; in cached_dir_lease_break()
617 ++tcon->tc_count; in cached_dir_lease_break()
618 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cached_dir_lease_break()
734 ++cfid->tcon->tc_count; in cfids_laundromat_worker()
735 trace_smb3_tcon_ref(cfid->tcon->debug_id, cfid->tcon->tc_count, in cfids_laundromat_worker()
770 * Called from tconInfoFree when we are tearing down the tcon.