• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext3/

Lines Matching defs:goal

244  * @grp_goal:		given goal block relative to the allocation block group
248 * Test if the given goal block (group relative) is within the file's
251 * If the reservation window is outside the goal allocation group, return 0;
252 * grp_goal (given goal block) could be -1, which means no specific
253 * goal block. In this case, always return 1.
254 * If the goal block is within the reservation window, return 1;
278 * @goal: target allocation block
280 * Find the reserved window which includes the goal, or the previous one
281 * if the goal is not in any window.
282 * Returns NULL if there are no windows or if all windows start after the goal.
285 search_reserve_window(struct rb_root *root, ext3_fsblk_t goal)
296 if (goal < rsv->rsv_start)
298 else if (goal > rsv->rsv_end)
304 * We've fallen off the end of the tree: the goal wasn't inside
306 * side of the interval containing the goal. If it's the RHS,
309 if (rsv->rsv_start > goal) {
418 * if filesystem is mounted with NORESERVATION, the goal
759 * the initial goal; then for a free byte somewhere in the bitmap; then
771 * The goal was occupied; search forward for a free
784 ext3_debug("Bit not found near goal\n");
854 * Otherwise, the allocation range starts from the give goal block, ends at
961 * the maximum block number that our goal reservable space
1064 * allocate a new reservation window near the allocation goal,
1065 * or the beginning of the group, if there is no goal.
1067 * We first find a reservable space after the goal, then from
1085 * @grp_goal: The goal (group-relative). It is where the search for a
1121 * and if the goal is inside the old reservation window,
1155 * shift the search start to the window near the goal block
1283 * reservation window for it starting from the goal first. Then do the block
1332 * grp_goal is a group relative block number (if there is a goal)
1348 * c) we come here with a goal and with a reservation window
1351 * at the beginning with a goal and the goal is inside the window, or
1352 * we don't have a goal but already have a reservation window.
1455 * @goal: given target block(filesystem wide)
1459 * ext3_new_blocks uses a goal block to assist allocation. It tries to
1460 * allocate block(s) from the block group contains the goal block first. If that
1462 * any specific goal block.
1466 ext3_fsblk_t goal, unsigned long *count, int *errp)
1472 ext3_grpblk_t grp_target_blk; /* blockgroup relative goal block */
1510 ext3_debug("goal=%lu.\n", goal);
1529 * First, test whether the goal block is free.
1531 if (goal < le32_to_cpu(es->s_first_data_block) ||
1532 goal >= le32_to_cpu(es->s_blocks_count))
1533 goal = le32_to_cpu(es->s_first_data_block);
1534 group_no = (goal - le32_to_cpu(es->s_first_data_block)) /
1553 grp_target_blk = ((goal - le32_to_cpu(es->s_first_data_block)) %
1601 * try to allocate block(s) from this group, without a goal(-1).
1741 ext3_fsblk_t goal, int *errp)
1745 return ext3_new_blocks(handle, inode, goal, &count, errp);