Lines Matching defs:tcon

110 	 * Just validate tree id in header with work->tcon->id.
113 if (!work->tcon) {
114 pr_err("The first operation in the compound does not have tcon\n");
117 if (tree_id != UINT_MAX && work->tcon->id != tree_id) {
119 tree_id, work->tcon->id);
125 work->tcon = ksmbd_tree_conn_lookup(work->sess, tree_id);
126 if (!work->tcon) {
2131 struct ksmbd_tree_connect *tcon = work->tcon;
2138 if (!tcon) {
2149 if (tcon->t_state == TREE_DISCONNECTED) {
2156 WARN_ON_ONCE(atomic_dec_and_test(&tcon->refcount));
2157 tcon->t_state = TREE_DISCONNECTED;
2160 err = ksmbd_tree_conn_disconnect(sess, tcon);
2166 work->tcon = NULL;
2516 static void smb2_new_xattrs(struct ksmbd_tree_connect *tcon, const struct path *path,
2522 if (!test_share_config_flag(tcon->share_conf,
2537 static void smb2_update_xattrs(struct ksmbd_tree_connect *tcon,
2546 if (!test_share_config_flag(tcon->share_conf,
2563 struct ksmbd_tree_connect *tcon = work->tcon;
2564 struct ksmbd_share_config *share = tcon->share_conf;
2621 return set_info_sec(work->conn, work->tcon, path, &sd_buf->ntsd,
2655 struct ksmbd_tree_connect *tcon = work->tcon;
2659 struct ksmbd_share_config *share = tcon->share_conf;
2720 if (!test_share_config_flag(work->tcon->share_conf,
2848 if (tcon->posix_extensions) {
2892 if (!test_tree_conn_flag(tcon, KSMBD_TREE_CONN_FLAG_WRITABLE)) {
2986 if (!test_tree_conn_flag(tcon, KSMBD_TREE_CONN_FLAG_WRITABLE)) {
3109 if (test_share_config_flag(work->tcon->share_conf,
3122 if (test_share_config_flag(work->tcon->share_conf,
3215 if (!test_share_config_flag(work->tcon->share_conf, KSMBD_SHARE_FLAG_OPLOCKS) ||
3314 smb2_update_xattrs(tcon, &path, fp);
3316 smb2_new_xattrs(tcon, &path, fp);
3396 stat.ino, tcon->id);
3970 if (ksmbd_share_veto_filename(priv->work->tcon->share_conf, name))
4033 struct ksmbd_share_config *share = work->tcon->share_conf;
4561 filename = convert_to_nt_pathname(work->tcon->share_conf, &fp->filp->f_path);
4896 if (test_share_config_flag(work->tcon->share_conf,
4984 if (!work->tcon->posix_extensions) {
5009 struct ksmbd_share_config *share = work->tcon->share_conf;
5060 if (test_share_config_flag(work->tcon->share_conf,
5190 if (!work->tcon->posix_extensions) {
5271 if (test_share_config_flag(work->tcon->share_conf,
5407 if (test_share_config_flag(work->tcon->share_conf,
5525 struct ksmbd_share_config *share = fp->tcon->share_conf;
5972 return smb2_create_link(work, work->tcon->share_conf,
6026 return set_info_sec(fp->conn, fp->tcon, &fp->filp->f_path, pntsd,
6060 if (!test_tree_conn_flag(work->tcon, KSMBD_TREE_CONN_FLAG_WRITABLE)) {
6082 rc = smb2_set_info_file(work, fp, req, work->tcon->share_conf);
6270 if (test_share_config_flag(work->tcon->share_conf,
6537 if (test_share_config_flag(work->tcon->share_conf, KSMBD_SHARE_FLAG_PIPE)) {
6569 if (!test_tree_conn_flag(work->tcon, KSMBD_TREE_CONN_FLAG_WRITABLE)) {
7597 test_share_config_flag(work->tcon->share_conf,
7762 if (!test_tree_conn_flag(work->tcon, KSMBD_TREE_CONN_FLAG_WRITABLE)) {
7807 if (!test_tree_conn_flag(work->tcon, KSMBD_TREE_CONN_FLAG_WRITABLE)) {