Lines Matching defs:tcon
305 int (*query_reparse_tag)(const unsigned int xid, struct cifs_tcon *tcon,
329 umode_t mode, struct cifs_tcon *tcon,
333 struct cifs_tcon *tcon, const char *name,
368 void (*close_getattr)(const unsigned int xid, struct cifs_tcon *tcon,
426 int (*set_integrity)(const unsigned int, struct cifs_tcon *tcon,
428 int (*enum_snapshots)(const unsigned int xid, struct cifs_tcon *tcon,
491 struct cifs_tcon *tcon,
499 struct cifs_tcon *tcon,
504 int (*fiemap)(struct cifs_tcon *tcon, struct cifsFileInfo *,
1080 struct cifs_tcon *tcon;
1155 bool need_reopen_files:1; /* need to reopen tcon file handles */
1186 * This is a refcounted and timestamped container for a tcon pointer. The
1187 * container holds a tcon reference. It is considered safe to free one of
1276 struct cifs_tcon *tcon;
1309 /* following two lists are protected by tcon->open_file_lock */
1310 struct list_head tlist; /* pointer to next fid owned by tcon */
1343 struct cifs_tcon *tcon;
1539 static inline void cifs_stats_bytes_written(struct cifs_tcon *tcon,
1543 spin_lock(&tcon->stat_lock);
1544 tcon->bytes_written += bytes;
1545 spin_unlock(&tcon->stat_lock);
1549 static inline void cifs_stats_bytes_read(struct cifs_tcon *tcon,
1552 spin_lock(&tcon->stat_lock);
1553 tcon->bytes_read += bytes;
1554 spin_unlock(&tcon->stat_lock);
1624 struct cifs_tcon *tcon;
1872 * tcon->open_file_lock protects the list of open files hanging off the tcon
1906 * tcp session, and the list of tcon's per smb session. It also protects
1907 * the reference counters for the server, smb session, and tcon. It also
1909 * changes to the tcon->tidStatus should be done while holding this lock.
1911 * tcon->open_file_lock and that before file->file_info_lock since the
2037 static inline bool is_tcon_dfs(struct cifs_tcon *tcon)
2046 if (!tcon || !tcon->ses || !tcon->ses->server)
2048 return is_smb1_server(tcon->ses->server) ? tcon->Flags & SMB_SHARE_IS_IN_DFS :
2049 tcon->share_flags & (SHI1005_FLAGS_DFS | SHI1005_FLAGS_DFS_ROOT);