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

Lines Matching defs:goal

257  * @grp_goal:		given goal block relative to the allocation block group
261 * Test if the given goal block (group relative) is within the file's
264 * If the reservation window is outside the goal allocation group, return 0;
265 * grp_goal (given goal block) could be -1, which means no specific
266 * goal block. In this case, always return 1.
267 * If the goal block is within the reservation window, return 1;
291 * @goal: target allocation block
293 * Find the reserved window which includes the goal, or the previous one
294 * if the goal is not in any window.
295 * Returns NULL if there are no windows or if all windows start after the goal.
298 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal)
309 if (goal < rsv->rsv_start)
311 else if (goal > rsv->rsv_end)
317 * We've fallen off the end of the tree: the goal wasn't inside
319 * side of the interval containing the goal. If it's the RHS,
322 if (rsv->rsv_start > goal) {
431 * if filesystem is mounted with NORESERVATION, the goal
603 * the initial goal; then for a free byte somewhere in the bitmap;
614 * The goal was occupied; search forward for a free
627 ext2_debug("Bit not found near goal\n");
662 * Otherwise, the allocation range starts from the give goal block,
768 * the maximum block number that our goal reservable space
871 * allocate a new reservation window near the allocation goal,
872 * or the beginning of the group, if there is no goal.
874 * We first find a reservable space after the goal, then from
892 * @grp_goal: The goal (group-relative). It is where the search for a
894 * if we have a goal(goal >0 ), then start from there,
895 * no goal(goal = -1), we start from the first block
928 * and if the goal is inside the old reservation window,
962 * shift the search start to the window near the goal block
1086 * reservation window for it starting from the goal first. Then do the block
1117 * grp_goal is a group relative block number (if there is a goal)
1133 * c) we come here with a goal and with a reservation window
1136 * at the beginning with a goal and the goal is inside the window, or
1137 * we don't have a goal but already have a reservation window.
1203 * @goal: given target block(filesystem wide)
1207 * ext2_new_blocks uses a goal block to assist allocation. If the goal is
1208 * free, or there is a free block within 32 blocks of the goal, that block
1214 ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal,
1221 ext2_grpblk_t grp_target_blk; /* blockgroup relative goal block */
1256 ext2_debug("goal=%lu.\n", goal);
1278 * First, test whether the goal block is free.
1280 if (goal < le32_to_cpu(es->s_first_data_block) ||
1281 goal >= le32_to_cpu(es->s_blocks_count))
1282 goal = le32_to_cpu(es->s_first_data_block);
1283 group_no = (goal - le32_to_cpu(es->s_first_data_block)) /
1302 grp_target_blk = ((goal - le32_to_cpu(es->s_first_data_block)) %
1349 * try to allocate block(s) from this group, without a goal(-1).
1436 ext2_fsblk_t ext2_new_block(struct inode *inode, unsigned long goal, int *errp)
1440 return ext2_new_blocks(inode, goal, &count, errp);