Lines Matching defs:tcon
321 unsigned int (*negotiate_wsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx);
323 unsigned int (*negotiate_rsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx);
347 struct cifs_tcon *tcon,
352 int (*query_file_info)(const unsigned int xid, struct cifs_tcon *tcon,
356 struct cifs_tcon *tcon,
362 int (*get_srv_inum)(const unsigned int xid, struct cifs_tcon *tcon,
382 umode_t mode, struct cifs_tcon *tcon,
386 struct cifs_tcon *tcon, const char *name,
403 struct cifs_tcon *tcon,
409 struct cifs_tcon *tcon,
415 struct cifs_tcon *tcon,
428 void (*close_getattr)(const unsigned int xid, struct cifs_tcon *tcon,
464 int (*oplock_response)(struct cifs_tcon *tcon, __u64 persistent_fid, __u64 volatile_fid,
487 int (*set_integrity)(const unsigned int, struct cifs_tcon *tcon,
489 int (*enum_snapshots)(const unsigned int xid, struct cifs_tcon *tcon,
553 struct cifs_tcon *tcon,
561 struct cifs_tcon *tcon,
566 int (*fiemap)(struct cifs_tcon *tcon, struct cifsFileInfo *,
1106 * We will ask for sess and tcon reconnection only if all the
1226 bool need_reopen_files:1; /* need to reopen tcon file handles */
1260 * This is a refcounted and timestamped container for a tcon pointer. The
1261 * container holds a tcon reference. It is considered safe to free one of
1358 struct cifs_tcon *tcon;
1391 /* following two lists are protected by tcon->open_file_lock */
1392 struct list_head tlist; /* pointer to next fid owned by tcon */
1428 struct cifs_tcon *tcon;
1612 static inline void cifs_stats_bytes_written(struct cifs_tcon *tcon,
1616 spin_lock(&tcon->stat_lock);
1617 tcon->bytes_written += bytes;
1618 spin_unlock(&tcon->stat_lock);
1622 static inline void cifs_stats_bytes_read(struct cifs_tcon *tcon,
1625 spin_lock(&tcon->stat_lock);
1626 tcon->bytes_read += bytes;
1627 spin_unlock(&tcon->stat_lock);
1697 struct cifs_tcon *tcon;
1771 struct cifs_tcon *tcon;
2010 * tcp session, and the list of tcon's per smb session. It also protects
2011 * the reference counters for the server, smb session, and tcon.
2013 * tcon->open_file_lock and that before file->file_info_lock since the
2124 static inline bool is_tcon_dfs(struct cifs_tcon *tcon)
2133 if (!tcon || !tcon->ses || !tcon->ses->server)
2135 return is_smb1_server(tcon->ses->server) ? tcon->Flags & SMB_SHARE_IS_IN_DFS :
2136 tcon->share_flags & (SHI1005_FLAGS_DFS | SHI1005_FLAGS_DFS_ROOT);
2139 static inline bool cifs_is_referral_server(struct cifs_tcon *tcon,
2146 return is_tcon_dfs(tcon) || (ref && (ref->flags & DFSREF_REFERRAL_SERVER));