Lines Matching full: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; in befs_read_datastream() local
61 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream()
67 bh = befs_bread_iaddr(sb, run); in befs_read_datastream()
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) in befs_fblock2brun() argument
102 err = befs_find_brun_direct(sb, data, fblock, run); in befs_fblock2brun()
105 err = befs_find_brun_indirect(sb, data, fblock, run); in befs_fblock2brun()
108 err = befs_find_brun_dblindirect(sb, data, fblock, run); in befs_fblock2brun()
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) in befs_find_brun_direct() argument
265 run->allocation_group = array[i].allocation_group; in befs_find_brun_direct()
266 run->start = array[i].start + offset; in befs_find_brun_direct()
267 run->len = array[i].len - offset; in befs_find_brun_direct()
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) in befs_find_brun_indirect() argument
326 /* Examine blocks of the indirect run one at a time */ in befs_find_brun_indirect()
344 run->allocation_group = in befs_find_brun_indirect()
346 run->start = in befs_find_brun_indirect()
348 run->len = in befs_find_brun_indirect()
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) in befs_find_brun_dblindirect() argument
509 *run = fsrun_to_cpu(sb, iaddr_array[block_indx]); in befs_find_brun_dblindirect()
517 run->start += offset; in befs_find_brun_dblindirect()
518 run->len -= offset; in befs_find_brun_dblindirect()