• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ext4/

Lines Matching refs:goal

202  * @grp_goal:		given goal block relative to the allocation block group
206 * Test if the given goal block (group relative) is within the file's
209 * If the reservation window is outside the goal allocation group, return 0;
210 * grp_goal (given goal block) could be -1, which means no specific
211 * goal block. In this case, always return 1.
212 * If the goal block is within the reservation window, return 1;
236 * @goal: target allocation block
238 * Find the reserved window which includes the goal, or the previous one
239 * if the goal is not in any window.
240 * Returns NULL if there are no windows or if all windows start after the goal.
243 search_reserve_window(struct rb_root *root, ext4_fsblk_t goal)
254 if (goal < rsv->rsv_start)
256 else if (goal > rsv->rsv_end)
262 * We've fallen off the end of the tree: the goal wasn't inside
264 * side of the interval containing the goal. If it's the RHS,
267 if (rsv->rsv_start > goal) {
376 * if filesystem is mounted with NORESERVATION, the goal
713 * the initial goal; then for a free byte somewhere in the bitmap; then
725 * The goal was occupied; search forward for a free
738 ext4_debug("Bit not found near goal\n");
808 * Otherwise, the allocation range starts from the give goal block, ends at
915 * the maximum block number that our goal reservable space
1018 * allocate a new reservation window near the allocation goal,
1019 * or the beginning of the group, if there is no goal.
1021 * We first find a reservable space after the goal, then from
1039 * @grp_goal: The goal (group-relative). It is where the search for a
1075 * and if the goal is inside the old reservation window,
1109 * shift the search start to the window near the goal block
1237 * reservation window for it starting from the goal first. Then do the block
1286 * grp_goal is a group relative block number (if there is a goal)
1302 * c) we come here with a goal and with a reservation window
1305 * at the beginning with a goal and the goal is inside the window, or
1306 * we don't have a goal but already have a reservation window.
1409 * @goal: given target block(filesystem wide)
1413 * ext4_new_blocks uses a goal block to assist allocation. It tries to
1414 * allocate block(s) from the block group contains the goal block first. If that
1416 * any specific goal block.
1420 ext4_fsblk_t goal, unsigned long *count, int *errp)
1426 ext4_grpblk_t grp_target_blk; /* blockgroup relative goal block */
1463 ext4_debug("goal=%lu.\n", goal);
1482 * First, test whether the goal block is free.
1484 if (goal < le32_to_cpu(es->s_first_data_block) ||
1485 goal >= ext4_blocks_count(es))
1486 goal = le32_to_cpu(es->s_first_data_block);
1487 ext4_get_group_no_and_offset(sb, goal, &group_no, &grp_target_blk);
1544 * try to allocate block(s) from this group, without a goal(-1).
1680 ext4_fsblk_t goal, int *errp)
1684 return ext4_new_blocks(handle, inode, goal, &count, errp);