Lines Matching refs:array

200 /*!	Inserts the block_run into the array. You will have to make sure the
201 array is large enough to contain the entry before calling this function.
224 // For whatever reason, BFS restricts the maximum array size
292 run_array* array;
293 while (fArrays.Pop(&array))
294 free(array);
302 run_array* array = ArrayAt(i);
304 for (int32 j = 0; j < array->CountRuns(); j++) {
305 block_run& arrayRun = array->runs[j];
320 /*! Adds the specified block_run into the array.
346 run_array* array = (run_array*)malloc(blockSize);
347 if (array == NULL)
350 if (fArrays.Push(array) != B_OK) {
351 free(array);
355 array->Init(blockSize);
356 fLastArray = array;
368 // check if the block is already in the array
373 // insert block into array
376 // array is full
444 /*! \brief Does a very basic consistency check of the run array.
449 Journal::_CheckRunArray(const run_array* array)
454 if (array->MaxRuns() != maxRuns
455 || array->CountRuns() > maxRuns
456 || array->CountRuns() <= 0) {
457 dprintf("run count: %d, array max: %d, max runs: %d\n",
458 (int)array->CountRuns(), (int)array->MaxRuns(), (int)maxRuns);
463 for (int32 i = 0; i < array->CountRuns(); i++) {
464 if (fVolume->ValidateBlockRun(array->RunAt(i)) != B_OK)
468 PRINT(("Log entry has %" B_PRId32 " entries\n", array->CountRuns()));
491 const run_array* array = (const run_array*)cachedArray.Block();
492 if (_CheckRunArray(array) < B_OK)
495 // First pass: check integrity of the blocks in the run array
503 for (int32 index = 0; index < array->CountRuns(); index++) {
504 const block_run& run = array->RunAt(index);
533 for (int32 index = 0; index < array->CountRuns(); index++) {
534 const block_run& run = array->RunAt(index);
811 run_array* array = runArrays.ArrayAt(k);
815 add_to_iovec(vecs, index, maxVecs, (void*)array, fVolume->BlockSize());
819 for (int32 i = 0; i < array->CountRuns(); i++) {
820 const block_run& run = array->RunAt(i);
858 for (int32 i = 0; i < array->CountRuns(); i++) {
859 const block_run& run = array->RunAt(i);
1061 // take the number of array blocks in this transaction into account