Lines Matching refs:tcon

125 int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,  in open_cached_dir()  argument
149 if (tcon == NULL || tcon->cfids == NULL || tcon->nohandlecache || in open_cached_dir()
150 is_smb1_server(tcon->ses->server) || (dir_cache_timeout == 0)) in open_cached_dir()
153 ses = tcon->ses; in open_cached_dir()
155 cfids = tcon->cfids; in open_cached_dir()
167 cfid = find_or_create_cached_dir(cfids, path, lookup_only, tcon->max_cached_dirs); in open_cached_dir()
207 if (smb3_encryption_required(tcon)) in open_cached_dir()
223 .tcon = tcon, in open_cached_dir()
231 rc = SMB2_open_init(tcon, server, in open_cached_dir()
235 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir()
241 rc = SMB2_query_info_init(tcon, server, in open_cached_dir()
257 tcon->need_reconnect = true; in open_cached_dir()
259 tcon->tree_name); in open_cached_dir()
263 cfid->tcon = tcon; in open_cached_dir()
338 SMB2_close(0, cfid->tcon, cfid->fid.persistent_fid, in open_cached_dir()
346 atomic_inc(&tcon->num_remote_opens); in open_cached_dir()
352 int open_cached_dir_by_dentry(struct cifs_tcon *tcon, in open_cached_dir_by_dentry() argument
357 struct cached_fids *cfids = tcon->cfids; in open_cached_dir_by_dentry()
394 SMB2_close(0, cfid->tcon, cfid->fid.persistent_fid, in smb2_close_cached_fid()
396 atomic_dec(&cfid->tcon->num_remote_opens); in smb2_close_cached_fid()
402 void drop_cached_dir_by_name(const unsigned int xid, struct cifs_tcon *tcon, in drop_cached_dir_by_name() argument
408 rc = open_cached_dir(xid, tcon, name, cifs_sb, true, &cfid); in drop_cached_dir_by_name()
436 struct cifs_tcon *tcon; in close_all_cached_dirs() local
442 tcon = tlink_tcon(tlink); in close_all_cached_dirs()
443 if (IS_ERR(tcon)) in close_all_cached_dirs()
445 cfids = tcon->cfids; in close_all_cached_dirs()
459 void invalidate_all_cached_dirs(struct cifs_tcon *tcon) in invalidate_all_cached_dirs() argument
461 struct cached_fids *cfids = tcon->cfids; in invalidate_all_cached_dirs()
509 int cached_dir_lease_break(struct cifs_tcon *tcon, __u8 lease_key[16]) in cached_dir_lease_break() argument
511 struct cached_fids *cfids = tcon->cfids; in cached_dir_lease_break()