Lines Matching refs:sessions

56 	struct cifs_ses *sessions[CACHE_MAX_ENTRIES];  member
112 cifs_put_smb_ses(mg->sessions[i]); in __mount_group_release()
1202 if (mg->num_sessions < ARRAY_SIZE(mg->sessions)) in dfs_cache_add_refsrv_session()
1203 mg->sessions[mg->num_sessions++] = ses; in dfs_cache_add_refsrv_session()
1376 static int __refresh_tcon(const char *path, struct cifs_ses **sessions, struct cifs_tcon *tcon, in __refresh_tcon() argument
1388 ses = find_ipc_from_server_path(sessions, path); in __refresh_tcon()
1434 static int refresh_tcon(struct cifs_ses **sessions, struct cifs_tcon *tcon, bool force_refresh) in refresh_tcon() argument
1442 __refresh_tcon(server->leaf_fullpath + 1, sessions, tcon, force_refresh); in refresh_tcon()
1443 __refresh_tcon(server->origin_fullpath + 1, sessions, tcon, force_refresh); in refresh_tcon()
1465 struct cifs_ses *sessions[CACHE_MAX_ENTRIES + 1] = {NULL}; in dfs_cache_remount_fs() local
1495 memcpy(&sessions, mg->sessions, mg->num_sessions * sizeof(mg->sessions[0])); in dfs_cache_remount_fs()
1508 rc = refresh_tcon(sessions, tcon, true); in dfs_cache_remount_fs()
1518 static void refresh_mounts(struct cifs_ses **sessions) in refresh_mounts() argument
1558 __refresh_tcon(server->leaf_fullpath + 1, sessions, tcon, false); in refresh_mounts()
1559 __refresh_tcon(server->origin_fullpath + 1, sessions, tcon, false); in refresh_mounts()
1567 static void refresh_cache(struct cifs_ses **sessions) in refresh_cache() argument
1591 IS_ERR(find_ipc_from_server_path(sessions, ce->path))) in refresh_cache()
1609 ses = find_ipc_from_server_path(sessions, path); in refresh_cache()
1643 struct cifs_ses *sessions[CACHE_MAX_ENTRIES + 1] = {NULL}; in refresh_cache_worker() local
1644 int max_sessions = ARRAY_SIZE(sessions) - 1; in refresh_cache_worker()
1667 memcpy(&sessions[i], mg->sessions, count * sizeof(mg->sessions[0])); in refresh_cache_worker()
1672 if (sessions[0]) { in refresh_cache_worker()
1674 refresh_mounts(sessions); in refresh_cache_worker()
1675 refresh_cache(sessions); in refresh_cache_worker()