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()
1362 static int __refresh_tcon(const char *path, struct cifs_ses **sessions, struct cifs_tcon *tcon, in __refresh_tcon() argument
1374 ses = find_ipc_from_server_path(sessions, path); in __refresh_tcon()
1420 static int refresh_tcon(struct cifs_ses **sessions, struct cifs_tcon *tcon, bool force_refresh) in refresh_tcon() argument
1426 __refresh_tcon(server->leaf_fullpath + 1, sessions, tcon, force_refresh); in refresh_tcon()
1429 __refresh_tcon(server->origin_fullpath + 1, sessions, tcon, force_refresh); in refresh_tcon()
1449 struct cifs_ses *sessions[CACHE_MAX_ENTRIES + 1] = {NULL}; in dfs_cache_remount_fs() local
1479 memcpy(&sessions, mg->sessions, mg->num_sessions * sizeof(mg->sessions[0])); in dfs_cache_remount_fs()
1492 rc = refresh_tcon(sessions, tcon, true); in dfs_cache_remount_fs()
1502 static void refresh_mounts(struct cifs_ses **sessions) in refresh_mounts() argument
1534 __refresh_tcon(server->leaf_fullpath + 1, sessions, tcon, false); in refresh_mounts()
1537 __refresh_tcon(server->origin_fullpath + 1, sessions, tcon, false); in refresh_mounts()
1542 static void refresh_cache(struct cifs_ses **sessions) in refresh_cache() argument
1566 IS_ERR(find_ipc_from_server_path(sessions, ce->path))) in refresh_cache()
1584 ses = find_ipc_from_server_path(sessions, path); in refresh_cache()
1618 struct cifs_ses *sessions[CACHE_MAX_ENTRIES + 1] = {NULL}; in refresh_cache_worker() local
1619 int max_sessions = ARRAY_SIZE(sessions) - 1; in refresh_cache_worker()
1642 memcpy(&sessions[i], mg->sessions, count * sizeof(mg->sessions[0])); in refresh_cache_worker()
1647 if (sessions[0]) { in refresh_cache_worker()
1649 refresh_mounts(sessions); in refresh_cache_worker()
1650 refresh_cache(sessions); in refresh_cache_worker()