Lines Matching refs:run

26 				 befs_blocknr_t blockno, befs_block_run *run);
31 befs_block_run *run);
36 befs_block_run *run);
53 befs_block_run run;
61 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) {
67 bh = befs_bread_iaddr(sb, run);
80 * befs_fblock2brun - give back block run for fblock
84 * @run: The found run is passed back through this pointer
96 befs_blocknr_t fblock, befs_block_run *run)
102 err = befs_find_brun_direct(sb, data, fblock, run);
105 err = befs_find_brun_indirect(sb, data, fblock, run);
108 err = befs_find_brun_dblindirect(sb, data, fblock, run);
222 * befs_find_brun_direct - find a direct block run in the datastream
226 * @run: The found run is passed back through this pointer
228 * Finds the block run that starts at file block number blockno
240 * incrementing this by the length of each block run as we come
246 * run as stored on disk, we offset the start and length members
247 * of the block run, so that blockno is the start and len is
248 * still valid (the run ends in the same place).
252 befs_blocknr_t blockno, befs_block_run *run)
265 run->allocation_group = array[i].allocation_group;
266 run->start = array[i].start + offset;
267 run->len = array[i].len - offset;
283 * befs_find_brun_indirect - find a block run in the datastream
287 * @run: The found run is passed back through this pointer
289 * Finds the block run that starts at file block number blockno
297 * For each block in the indirect run of the datastream, read
308 befs_block_run *run)
326 /* Examine blocks of the indirect run one at a time */
344 run->allocation_group =
346 run->start =
348 run->len =
374 * befs_find_brun_dblindirect - find a block run in the datastream
378 * @run: The found run is passed back through this pointer
380 * Finds the block run that starts at file block number blockno
390 * block run maps a constant amount of file data. This means
403 * though the double-indirect run may be several blocks long,
407 * the actual block run that maps the data block we are interested
410 * Then we offset the run as in befs_find_brun_array() and we are
417 befs_block_run *run)
509 *run = fsrun_to_cpu(sb, iaddr_array[block_indx]);
517 run->start += offset;
518 run->len -= offset;