Lines Matching refs:goal
147 errcode_t ext2fs_new_block3(ext2_filsys fs, blk64_t goal, in ext2fs_new_block3() argument
153 errcode_t (*gab)(ext2_filsys fs, blk64_t goal, blk64_t *ret); in ext2fs_new_block3()
169 retval = gab2(fs, goal, &b, ctx); in ext2fs_new_block3()
175 retval = gab(fs, goal, &b); in ext2fs_new_block3()
184 if (!goal || (goal >= ext2fs_blocks_count(fs->super))) in ext2fs_new_block3()
185 goal = fs->super->s_first_data_block; in ext2fs_new_block3()
186 goal &= ~EXT2FS_CLUSTER_MASK(fs); in ext2fs_new_block3()
189 goal, ext2fs_blocks_count(fs->super) - 1, &b); in ext2fs_new_block3()
190 if ((retval == ENOENT) && (goal != fs->super->s_first_data_block)) in ext2fs_new_block3()
192 fs->super->s_first_data_block, goal - 1, &b); in ext2fs_new_block3()
204 errcode_t ext2fs_new_block2(ext2_filsys fs, blk64_t goal, in ext2fs_new_block2() argument
207 return ext2fs_new_block3(fs, goal, map, ret, NULL); in ext2fs_new_block2()
210 errcode_t ext2fs_new_block(ext2_filsys fs, blk_t goal, in ext2fs_new_block() argument
215 retval = ext2fs_new_block2(fs, goal, map, &val); in ext2fs_new_block()
225 errcode_t ext2fs_alloc_block3(ext2_filsys fs, blk64_t goal, char *block_buf, in ext2fs_alloc_block3() argument
232 retval = (fs->get_alloc_block2)(fs, goal, &block, ctx); in ext2fs_alloc_block3()
236 retval = (fs->get_alloc_block)(fs, goal, &block); in ext2fs_alloc_block3()
246 retval = ext2fs_new_block3(fs, goal, 0, &block, ctx); in ext2fs_alloc_block3()
266 errcode_t ext2fs_alloc_block2(ext2_filsys fs, blk64_t goal, in ext2fs_alloc_block2() argument
269 return ext2fs_alloc_block3(fs, goal, block_buf, ret, NULL); in ext2fs_alloc_block2()
272 errcode_t ext2fs_alloc_block(ext2_filsys fs, blk_t goal, in ext2fs_alloc_block() argument
276 blk64_t ret64, goal64 = goal; in ext2fs_alloc_block()
332 blk64_t goal, in ext2fs_set_alloc_block_callback() argument
335 blk64_t goal, in ext2fs_set_alloc_block_callback()
403 errcode_t ext2fs_new_range(ext2_filsys fs, int flags, blk64_t goal, in ext2fs_new_range() argument
411 errcode_t (*nrf)(ext2_filsys fs, int flags, blk64_t goal, in ext2fs_new_range()
415 goal, len); in ext2fs_new_range()
429 retval = nrf(fs, flags, goal, len, pblk, plen); in ext2fs_new_range()
441 if (!goal || goal >= ext2fs_blocks_count(fs->super)) in ext2fs_new_range()
442 goal = fs->super->s_first_data_block; in ext2fs_new_range()
444 start = goal; in ext2fs_new_range()
445 while (!looped || start <= goal) { in ext2fs_new_range()
464 if (flags & EXT2_NEWRANGE_FIXED_GOAL && start != goal) in ext2fs_new_range()
482 __func__, goal, goal + len - 1, in ext2fs_new_range()
510 errcode_t (*func)(ext2_filsys fs, int flags, blk64_t goal, in ext2fs_set_new_range_callback() argument
512 errcode_t (**old)(ext2_filsys fs, int flags, blk64_t goal, in ext2fs_set_new_range_callback()
524 errcode_t ext2fs_alloc_range(ext2_filsys fs, int flags, blk64_t goal, in ext2fs_alloc_range() argument
538 retval = ext2fs_new_range(fs, newr_flags, goal, len, NULL, ret, &plen); in ext2fs_alloc_range()