Lines Matching refs: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
97 * block group descriptors, and reserved block group
103 * to check to see if the block is in the block group. If it
167 * last group, just in case some other tool was used,
191 * essentially implementing a per-group read-only flag. */
226 * Also if the number of blocks within the group is less than
235 /* Return the number of free blocks in a block group. It is used when
248 * blocks groups. Each group contains 1 bitmap block for blocks, 1 bitmap
251 * The file system contains group descriptors which are located after the
258 * ext4_get_group_desc() -- load group descriptor from disk
260 * @block_group: given block group
262 * group descriptor
323 ext4_group_t group)
328 if (unlikely(group >= EXT4_SB(sb)->s_groups_count))
330 indexv = group >> (EXT4_DESC_PER_BLOCK_BITS(sb));
331 indexh = group & ((EXT4_DESC_PER_BLOCK(sb)) - 1);
354 * blocks may not be in the group at all
356 * or it has to also read the block group where the bitmaps
452 * @block_group: given block group
521 ext4_error(sb, "Failed to init block bitmap for group "
750 * Adds up the number of free clusters from each block group.
788 printk(KERN_DEBUG "group %u: stored = %d, counted = %u\n",
829 * ext4_bg_has_super - number of blocks used by the superblock in group
831 * @group: group number to check
834 * in this group. Currently this will be only 0 or 1.
836 int ext4_bg_has_super(struct super_block *sb, ext4_group_t group)
840 if (group == 0)
843 if (group == le32_to_cpu(es->s_backup_bgs[0]) ||
844 group == le32_to_cpu(es->s_backup_bgs[1]))
848 if ((group <= 1) || !ext4_has_feature_sparse_super(sb))
850 if (!(group & 1))
852 if (test_root(group, 3) || (test_root(group, 5)) ||
853 test_root(group, 7))
860 ext4_group_t group)
862 unsigned long metagroup = group / EXT4_DESC_PER_BLOCK(sb);
866 if (group == first || group == first + 1 || group == last)
872 ext4_group_t group)
874 if (!ext4_bg_has_super(sb, group))
884 * ext4_bg_num_gdb - number of blocks used by the group table in group
886 * @group: group number to check
888 * Return the number of blocks used by the group descriptor table
889 * (primary or backup) in this group. In the future there may be a
890 * different number of descriptor blocks in each group.
892 unsigned long ext4_bg_num_gdb(struct super_block *sb, ext4_group_t group)
896 unsigned long metagroup = group / EXT4_DESC_PER_BLOCK(sb);
899 return ext4_bg_num_gdb_nometa(sb, group);
901 return ext4_bg_num_gdb_meta(sb,group);
907 * the beginning of a block group, including the reserved gdt blocks.
915 /* Check for superblock and gdt backups in this group */
958 * group for directories and special files. Regular
959 * files will start at the second block group. This