Lines Matching refs:group

92   unsigned inodespg;     // Inodes per group
94 unsigned blockbits; // Bits per block. (Also blocks per group.)
98 unsigned nextgroup; // Next group we'll be allocating from
115 uint32_t blocks_per_group; // Blocks per group
116 uint32_t frags_per_group; // Fragments per group
117 uint32_t inodes_per_group; // Inodes per group
134 uint16_t block_group_nr; // block group # of this superblock
155 uint32_t first_meta_bg; // First metablock block group
166 uint16_t free_blocks_count; // How many free blocks in this group?
167 uint16_t free_inodes_count; // How many free inodes in this group?
358 // Calculate inodes per group from total inodes.
424 // Does this group contain a superblock backup (and group descriptor table)?
425 static int is_sb_group(uint32_t group)
430 if(!group || group==1) return 1;
433 while (j<group) j*=i;
434 if (j==group) return 1;
440 // Number of blocks used in group by optional superblock/group list backup.
441 static int group_superblock_overhead(uint32_t group)
445 if (!is_sb_group(group)) return 0;
447 // How many blocks does the group descriptor table take up?
454 if (!group && TT.blocksize == 1024) used++;
459 // Number of blocks used in group to store superblock/group/inode list
460 static int group_overhead(uint32_t group)
464 return group_superblock_overhead(group) + 2 + get_inodespg(TT.inodespg)
508 int i, group = TT.nextblock/TT.blockbits;
512 // If we just jumped into a new group, skip group overhead blocks.
513 while (group >= TT.nextgroup)
643 // Where does this group end?
665 // Loop through groups to write group descriptor table.
668 // Figure out what sector this group starts in.
678 // How many free inodes in this group?
690 // How many free blocks in this group?
702 // Fill out rest of group structure
712 // Now write out stuff that every block group has.
739 // Write inode table for this group (TODO)