Lines Matching refs:files_count
137 size_t files_count) { in session_set_files_count() argument
140 if (files_count > STORAGE_MAX_OPEN_FILES) { in session_set_files_count()
145 if (!files_count) { in session_set_files_count()
149 files = realloc(session->files, sizeof(files[0]) * files_count); in session_set_files_count()
154 if (files_count > session->files_count) in session_set_files_count()
155 memset(files + session->files_count, 0, in session_set_files_count()
156 sizeof(files[0]) * (files_count - session->files_count)); in session_set_files_count()
160 session->files_count = files_count; in session_set_files_count()
162 SS_INFO("%s: new file table size, 0x%zx\n", __func__, files_count); in session_set_files_count()
170 handle = session->files_count; in session_shrink_files()
174 if (handle < session->files_count) in session_shrink_files()
182 for (f_handle = 0; f_handle < session->files_count; f_handle++) { in session_close_all_files()
192 session->files_count = 0; in session_close_all_files()
203 for (handle = 0; handle < session->files_count; handle++) in create_file_handle()
207 if (handle >= session->files_count) { in create_file_handle()
229 if (handle >= session->files_count) { in free_file_handle()
249 if (handle >= session->files_count) { in get_file_handle()
306 session->files_count = 0; in storage_client_session_init()