Lines Matching refs:group
29 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap
32 * The file system contains group descriptors which are located after the
250 * @grp_goal: given goal block relative to the allocation block group
251 * @group: the current allocation block group
254 * Test if the given goal block (group relative) is within the file's
257 * If the reservation window is outside the goal allocation group, return 0;
265 unsigned int group, struct super_block * sb)
269 group_first_block = ext2_group_first_block_no(sb, group);
270 group_last_block = ext2_group_last_block_no(sb, group);
507 * Check to see if we are freeing blocks across a group
569 * @start: the starting block (group relative) of the search
570 * @bh: bufferhead contains the block group bitmap
571 * @maxblocks: the ending block (group relative) of the reservation
590 * @start: the starting block (group relative) to find next
592 * @bh: bufferhead contains the block group bitmap
593 * @maxblocks: the ending block (group relative) for the search
642 * @group: given allocation block group
644 * @grp_goal: given target block within the group
656 * ends at the block group's last block.
662 ext2_try_to_allocate(struct super_block *sb, int group,
667 ext2_fsblk_t group_first_block = ext2_group_first_block_no(sb, group);
668 ext2_fsblk_t group_last_block = ext2_group_last_block_no(sb, group);
701 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group),
740 * group. The search will end when we found the start of next
800 * have a reservation across the group boundary here
840 * reservation list (the list that inside the group). We try to
842 * or the beginning of the group, if there is no goal.
846 * it. If there is no free block until the end of group, then the
847 * whole group is full, we failed. Otherwise, check if the free
858 * failed: we failed to find a reservation window in this group
862 * @grp_goal: The goal (group-relative). It is where the search for a
866 * of the group.
869 * @group: the group we are trying to allocate in
870 * @bitmap_bh: the block group block bitmap
875 unsigned int group, struct buffer_head *bitmap_bh)
885 group_first_block = ext2_group_first_block_no(sb, group);
886 group_end_block = ext2_group_last_block_no(sb, group);
897 * if the old reservation is cross group boundary
901 * that belongs to the next group. In this case, there is no
903 * in this group(which will fail). we should
907 * window to the first block of next group.
1043 * @group: given allocation block group
1045 * @grp_goal: given target block within the group
1067 ext2_try_to_allocate_with_rsv(struct super_block *sb, unsigned int group,
1083 return ext2_try_to_allocate(sb, group, bitmap_bh,
1087 * grp_goal is a group relative block number (if there is a goal)
1090 * first block is the block number of the first block in this group
1092 group_first_block = ext2_group_first_block_no(sb, group);
1093 group_last_block = ext2_group_last_block_no(sb, group);
1113 grp_goal, group, sb)) {
1117 group, bitmap_bh);
1122 grp_goal, group, sb))
1138 ret = ext2_try_to_allocate(sb, group, bitmap_bh, grp_goal,
1201 * each block group the search first looks for an entire free byte in the block
1217 ext2_grpblk_t free_blocks; /* number of free blocks in a group */
1313 * group_no and gdp correctly point to the last group visited.
1325 * skip this group (and avoid loading bitmap) if there
1331 * skip this group if the number of
1343 * try to allocate block(s) from this group, without a goal(-1).
1369 ext2_debug("using block group %d(%d)\n",
1473 printk ("group %d: stored = %d, counted = %lu\n",
1502 static int ext2_group_sparse(int group)
1504 if (group <= 1)
1506 return (test_root(group, 3) || test_root(group, 5) ||
1507 test_root(group, 7));
1511 * ext2_bg_has_super - number of blocks used by the superblock in group
1513 * @group: group number to check
1516 * in this group. Currently this will be only 0 or 1.
1518 int ext2_bg_has_super(struct super_block *sb, int group)
1521 !ext2_group_sparse(group))
1527 * ext2_bg_num_gdb - number of blocks used by the group table in group
1529 * @group: group number to check
1531 * Return the number of blocks used by the group descriptor table
1532 * (primary or backup) in this group. In the future there may be a
1533 * different number of descriptor blocks in each group.
1535 unsigned long ext2_bg_num_gdb(struct super_block *sb, int group)
1537 return ext2_bg_has_super(sb, group) ? EXT2_SB(sb)->s_gdb_count : 0;