Lines Matching defs:server

93 	/* Select new DFS referral server so that new referrals go through it */
268 * server from where we'll start following any referrals. Otherwise rely on the
331 static int update_server_fullpath(struct TCP_Server_Info *server, struct cifs_sb_info *cifs_sb,
363 mutex_lock(&server->refpath_lock);
364 spin_lock(&server->srv_lock);
365 kfree(server->leaf_fullpath);
366 server->leaf_fullpath = npath;
367 spin_unlock(&server->srv_lock);
368 mutex_unlock(&server->refpath_lock);
373 static int target_share_matches_server(struct TCP_Server_Info *server, char *share,
384 cifs_server_lock(server);
385 if (dfs_host_len != strlen(server->hostname) ||
386 strncasecmp(dfs_host, server->hostname, dfs_host_len)) {
388 (int)dfs_host_len, dfs_host, server->hostname);
389 rc = match_target_ip(server, dfs_host, dfs_host_len, target_match);
393 cifs_server_unlock(server);
401 struct TCP_Server_Info *server = ses->server;
407 if (cifs_chan_needs_reconnect(ses, server) ||
418 cifs_server_lock(server);
419 scnprintf(tree, MAX_TREE_SIZE, "\\\\%s\\IPC$", server->hostname);
420 cifs_server_unlock(server);
422 rc = server->ops->tree_connect(xid, ses, tree, tcon,
450 struct TCP_Server_Info *server = tcon->ses->server;
451 const struct smb_version_operations *ops = server->ops;
473 rc = dfs_cache_get_tgt_share(server->leaf_fullpath + 1, tit, &share, &prefix);
479 rc = target_share_matches_server(server, share, &target_match);
487 dfs_cache_noreq_update_tgthint(server->leaf_fullpath + 1, tit);
511 rc = update_server_fullpath(server, cifs_sb, target);
536 struct TCP_Server_Info *server = tcon->ses->server;
537 char *old_fullpath = server->leaf_fullpath;
548 if (rc && server->leaf_fullpath != old_fullpath)
549 cifs_signal_cifsd_for_reconnect(server, true);
558 struct TCP_Server_Info *server = tcon->ses->server;
559 const struct smb_version_operations *ops = server->ops;
594 cifs_server_lock(server);
595 scnprintf(tree, MAX_TREE_SIZE, "\\\\%s\\IPC$", server->hostname);
596 cifs_server_unlock(server);
609 if (!cifs_sb || !server->leaf_fullpath ||
610 dfs_cache_noreq_find(server->leaf_fullpath + 1, &ref, &tl)) {