Lines Matching defs:group
33 * Calculate block group number for a given block number
38 ext4_group_t group;
41 group = (block -
45 ext4_get_group_no_and_offset(sb, block, &group, NULL);
46 return group;
50 * Calculate the block group number and offset into the block/cluster
100 * block group descriptors, and reserved block group
107 * is in the block group, or inode table cluster range is
130 * if the block is in the block group. If it is, then check
171 * last group, just in case some other tool was used,
228 * Also if the number of blocks within the group is less than
237 /* Return the number of free blocks in a block group. It is used when
250 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap
253 * The file system contains group descriptors which are located after the
260 * ext4_get_group_desc() -- load group descriptor from disk
262 * @block_group: given block group
264 * group descriptor
325 ext4_group_t group)
330 if (unlikely(group >= EXT4_SB(sb)->s_groups_count))
332 indexv = group >> (EXT4_DESC_PER_BLOCK_BITS(sb));
333 indexh = group & ((EXT4_DESC_PER_BLOCK(sb)) - 1);
356 * blocks may not be in the group at all
358 * or it has to also read the block group where the bitmaps
453 * @block_group: given block group
520 ext4_error(sb, "Failed to init block bitmap for group "
760 * Adds up the number of free clusters from each block group.
798 printk(KERN_DEBUG "group %u: stored = %d, counted = %u\n",
839 * ext4_bg_has_super - number of blocks used by the superblock in group
841 * @group: group number to check
844 * in this group. Currently this will be only 0 or 1.
846 int ext4_bg_has_super(struct super_block *sb, ext4_group_t group)
850 if (group == 0)
853 if (group == le32_to_cpu(es->s_backup_bgs[0]) ||
854 group == le32_to_cpu(es->s_backup_bgs[1]))
858 if ((group <= 1) || !ext4_has_feature_sparse_super(sb))
860 if (!(group & 1))
862 if (test_root(group, 3) || (test_root(group, 5)) ||
863 test_root(group, 7))
870 ext4_group_t group)
872 unsigned long metagroup = group / EXT4_DESC_PER_BLOCK(sb);
876 if (group == first || group == first + 1 || group == last)
882 ext4_group_t group)
884 if (!ext4_bg_has_super(sb, group))
894 * ext4_bg_num_gdb - number of blocks used by the group table in group
896 * @group: group number to check
898 * Return the number of blocks used by the group descriptor table
899 * (primary or backup) in this group. In the future there may be a
900 * different number of descriptor blocks in each group.
902 unsigned long ext4_bg_num_gdb(struct super_block *sb, ext4_group_t group)
906 unsigned long metagroup = group / EXT4_DESC_PER_BLOCK(sb);
909 return ext4_bg_num_gdb_nometa(sb, group);
911 return ext4_bg_num_gdb_meta(sb,group);
917 * the beginning of a block group, including the reserved gdt blocks.
925 /* Check for superblock and gdt backups in this group */
968 * group for directories and special files. Regular
969 * files will start at the second block group. This