Lines Matching defs: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
249 * @grp_goal: given goal block relative to the allocation block group
250 * @group: the current allocation block group
253 * Test if the given goal block (group relative) is within the file's
256 * If the reservation window is outside the goal allocation group, return 0;
264 unsigned int group, struct super_block * sb)
268 group_first_block = ext2_group_first_block_no(sb, group);
269 group_last_block = ext2_group_last_block_no(sb, group);
506 * Check to see if we are freeing blocks across a group
568 * @start: the starting block (group relative) of the search
569 * @bh: bufferhead contains the block group bitmap
570 * @maxblocks: the ending block (group relative) of the reservation
589 * @start: the starting block (group relative) to find next
591 * @bh: bufferhead contains the block group bitmap
592 * @maxblocks: the ending block (group relative) for the search
641 * @group: given allocation block group
643 * @grp_goal: given target block within the group
655 * ends at the block group's last block.
661 ext2_try_to_allocate(struct super_block *sb, int group,
666 ext2_fsblk_t group_first_block = ext2_group_first_block_no(sb, group);
667 ext2_fsblk_t group_last_block = ext2_group_last_block_no(sb, group);
700 if (ext2_set_bit_atomic(sb_bgl_lock(EXT2_SB(sb), group),
740 * @last_block is normally the last block in this group. The search will end
797 * have a reservation across the group boundary here
836 * @grp_goal: The goal block relative to the start of the group.
838 * @group: The group we are trying to allocate in.
839 * @bitmap_bh: The block group block bitmap.
842 * list (the list inside the group). We try to allocate a new
844 * group, if @grp_goal is negative.
848 * no free block until the end of group, then the whole group is full,
861 * in this group
865 unsigned int group, struct buffer_head *bitmap_bh)
875 group_first_block = ext2_group_first_block_no(sb, group);
876 group_end_block = ext2_group_last_block_no(sb, group);
887 * if the old reservation is cross group boundary
891 * that belongs to the next group. In this case, there is no
893 * in this group(which will fail). we should
897 * window to the first block of next group.
1033 * @group: given allocation block group
1035 * @grp_goal: given target block within the group
1057 ext2_try_to_allocate_with_rsv(struct super_block *sb, unsigned int group,
1073 return ext2_try_to_allocate(sb, group, bitmap_bh,
1077 * grp_goal is a group relative block number (if there is a goal)
1080 * first block is the block number of the first block in this group
1082 group_first_block = ext2_group_first_block_no(sb, group);
1083 group_last_block = ext2_group_last_block_no(sb, group);
1103 grp_goal, group, sb)) {
1107 group, bitmap_bh);
1112 grp_goal, group, sb))
1126 "Reservation out of group %u range goal %d fsb[%lu,%lu] rsv[%lu, %lu]",
1127 group, grp_goal, group_first_block,
1133 ret = ext2_try_to_allocate(sb, group, bitmap_bh, grp_goal,
1197 * each block group the search first looks for an entire free byte in the block
1213 ext2_grpblk_t free_blocks; /* number of free blocks in a group */
1309 * group_no and gdp correctly point to the last group visited.
1321 * skip this group (and avoid loading bitmap) if there
1327 * skip this group if the number of
1339 * try to allocate block(s) from this group, without a goal(-1).
1365 ext2_debug("using block group %d(%d)\n",
1462 printk ("group %d: stored = %d, counted = %lu\n",
1491 static int ext2_group_sparse(int group)
1493 if (group <= 1)
1495 return (test_root(group, 3) || test_root(group, 5) ||
1496 test_root(group, 7));
1500 * ext2_bg_has_super - number of blocks used by the superblock in group
1502 * @group: group number to check
1505 * in this group. Currently this will be only 0 or 1.
1507 int ext2_bg_has_super(struct super_block *sb, int group)
1510 !ext2_group_sparse(group))
1516 * ext2_bg_num_gdb - number of blocks used by the group table in group
1518 * @group: group number to check
1520 * Return the number of blocks used by the group descriptor table
1521 * (primary or backup) in this group. In the future there may be a
1522 * different number of descriptor blocks in each group.
1524 unsigned long ext2_bg_num_gdb(struct super_block *sb, int group)
1526 return ext2_bg_has_super(sb, group) ? EXT2_SB(sb)->s_gdb_count : 0;