Lines Matching full:goal

256  * @grp_goal:		given goal block relative to the allocation block group
260 * Test if the given goal block (group relative) is within the file's
263 * If the reservation window is outside the goal allocation group, return 0;
264 * grp_goal (given goal block) could be -1, which means no specific
265 * goal block. In this case, always return 1.
266 * If the goal block is within the reservation window, return 1;
290 * @goal: target allocation block
292 * Find the reserved window which includes the goal, or the previous one
293 * if the goal is not in any window.
294 * Returns NULL if there are no windows or if all windows start after the goal.
297 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) in search_reserve_window() argument
308 if (goal < rsv->rsv_start) in search_reserve_window()
310 else if (goal > rsv->rsv_end) in search_reserve_window()
316 * We've fallen off the end of the tree: the goal wasn't inside in search_reserve_window()
318 * side of the interval containing the goal. If it's the RHS, in search_reserve_window()
321 if (rsv->rsv_start > goal) { in search_reserve_window()
430 * if filesystem is mounted with NORESERVATION, the goal in ext2_init_block_alloc_info()
603 * the initial goal; then for a free byte somewhere in the bitmap;
614 * The goal was occupied; search forward for a free in find_next_usable_block()
627 ext2_debug("Bit not found near goal\n"); in find_next_usable_block()
661 * Otherwise, the allocation range starts from the give goal block,
731 * @last_block: The maximum block number that our goal reservable space
843 * @grp_goal: The goal block relative to the start of the group.
853 * We first find a reservable space after the goal, then from there,
895 * and if the goal is inside the old reservation window, in alloc_new_reservation()
929 * shift the search start to the window near the goal block in alloc_new_reservation()
1053 * reservation window for it starting from the goal first. Then do the block
1084 * grp_goal is a group relative block number (if there is a goal) in ext2_try_to_allocate_with_rsv()
1100 * c) we come here with a goal and with a reservation window in ext2_try_to_allocate_with_rsv()
1103 * at the beginning with a goal and the goal is inside the window, or in ext2_try_to_allocate_with_rsv()
1104 * we don't have a goal but already have a reservation window. in ext2_try_to_allocate_with_rsv()
1133 "Reservation out of group %u range goal %d fsb[%lu,%lu] rsv[%lu, %lu]", in ext2_try_to_allocate_with_rsv()
1196 * @goal: given target block(filesystem wide)
1201 * ext2_new_blocks uses a goal block to assist allocation. If the goal is
1202 * free, or there is a free block within 32 blocks of the goal, that block
1208 ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, in ext2_new_blocks() argument
1215 ext2_grpblk_t grp_target_blk; /* blockgroup relative goal block */ in ext2_new_blocks()
1246 ext2_debug("goal=%lu.\n", goal); in ext2_new_blocks()
1268 * First, test whether the goal block is free. in ext2_new_blocks()
1270 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks()
1271 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks()
1272 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks()
1273 group_no = (goal - le32_to_cpu(es->s_first_data_block)) / in ext2_new_blocks()
1292 grp_target_blk = ((goal - le32_to_cpu(es->s_first_data_block)) % in ext2_new_blocks()
1346 * try to allocate block(s) from this group, without a goal(-1). in ext2_new_blocks()