Lines Matching full:tcon

134 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,  in open_cached_dir()  argument
163 if (tcon == NULL) in open_cached_dir()
166 ses = tcon->ses; in open_cached_dir()
167 cfids = tcon->cfids; in open_cached_dir()
186 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs); in open_cached_dir()
250 cfid->tcon = tcon; in open_cached_dir()
259 if (smb3_encryption_required(tcon)) in open_cached_dir()
274 .tcon = tcon, in open_cached_dir()
285 rc = SMB2_open_init(tcon, server, in open_cached_dir()
289 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir()
295 rc = SMB2_query_info_init(tcon, server, in open_cached_dir()
316 tcon->need_reconnect = true; in open_cached_dir()
318 tcon->tree_name); in open_cached_dir()
399 atomic_inc(&tcon->num_remote_opens); in open_cached_dir()
404 smb2_should_replay(tcon, &retries, &cur_sleep)) in open_cached_dir()
410 int open_cached_dir_by_dentry(struct cifs_tcon *tcon, in open_cached_dir_by_dentry() argument
415 struct cached_fids *cfids = tcon->cfids; in open_cached_dir_by_dentry()
453 rc = SMB2_close(0, cfid->tcon, cfid->fid.persistent_fid, in smb2_close_cached_fid()
462 void drop_cached_dir_by_name(const unsigned int xid, struct cifs_tcon *tcon, in drop_cached_dir_by_name() argument
468 rc = open_cached_dir(xid, tcon, name, cifs_sb, true, &cfid); in drop_cached_dir_by_name()
496 struct cifs_tcon *tcon; in close_all_cached_dirs() local
505 tcon = tlink_tcon(tlink); in close_all_cached_dirs()
506 if (IS_ERR(tcon)) in close_all_cached_dirs()
508 cfids = tcon->cfids; in close_all_cached_dirs()
548 * Invalidate all cached dirs when a TCON has been reset
551 void invalidate_all_cached_dirs(struct cifs_tcon *tcon) in invalidate_all_cached_dirs() argument
553 struct cached_fids *cfids = tcon->cfids; in invalidate_all_cached_dirs()
592 struct cifs_tcon *tcon = cfid->tcon; in cached_dir_offload_close() local
597 cifs_put_tcon(tcon, netfs_trace_tcon_ref_put_cached_close); in cached_dir_offload_close()
605 * tcon.
622 bool cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]) in cached_dir_lease_break() argument
624 struct cached_fids *cfids = tcon->cfids; in cached_dir_lease_break()
646 ++tcon->tc_count; in cached_dir_lease_break()
647 trace_smb3_tcon_ref(tcon->debug_id, tcon->tc_count, in cached_dir_lease_break()
763 ++cfid->tcon->tc_count; in cfids_laundromat_worker()
764 trace_smb3_tcon_ref(cfid->tcon->debug_id, cfid->tcon->tc_count, in cfids_laundromat_worker()
799 * Called from tconInfoFree when we are tearing down the tcon.