Lines Matching defs:gd
245 #define GRP_GET_GROUP_BBM(fs,grp) ( get_blk((fs),(fs)->gd[(grp)].bg_block_bitmap) )
248 #define GRP_GET_GROUP_IBM(fs,grp) ( get_blk((fs),(fs)->gd[(grp)].bg_inode_bitmap) )
582 groupdescriptor gd[0]; // The group descriptors
631 swap_gd(groupdescriptor *gd)
633 #define this gd
835 itab = (inode *)get_blk(fs, fs->gd[grp].bg_inode_table);
881 if(!(bk = allocate(get_blk(fs,fs->gd[grp].bg_block_bitmap), 0))) {
883 bk=allocate(get_blk(fs,fs->gd[grp].bg_block_bitmap),0);
888 if(!(fs->gd[grp].bg_free_blocks_count--))
903 deallocate(get_blk(fs,fs->gd[grp].bg_block_bitmap), bk);
904 fs->gd[grp].bg_free_blocks_count++;
924 if (fs->gd[grp].bg_free_inodes_count < avefreei ||
925 fs->gd[grp].bg_free_inodes_count == 0)
928 fs->gd[grp].bg_free_blocks_count > fs->gd[best_group].bg_free_blocks_count)
931 if (!(nod = allocate(get_blk(fs,fs->gd[best_group].bg_inode_bitmap),0)))
933 if(!(fs->gd[best_group].bg_free_inodes_count--))
1399 fs->gd[GRP_GROUP_OF_INODE(fs,nod)].bg_used_dirs_count++;
1925 swap_gd(&(fs->gd[i]));
1935 swap_gd(&(fs->gd[i]));
2031 fs->gd[i].bg_free_blocks_count = free_blocks_per_group;
2034 fs->gd[i].bg_free_blocks_count = free_blocks;
2038 fs->gd[i].bg_free_inodes_count = nbinodes_per_group;
2040 fs->gd[i].bg_free_inodes_count = nbinodes_per_group -
2042 fs->gd[i].bg_used_dirs_count = 0;
2043 fs->gd[i].bg_block_bitmap = bbmpos;
2044 fs->gd[i].bg_inode_bitmap = ibmpos;
2045 fs->gd[i].bg_inode_table = itblpos;
2053 bbm = get_blk(fs,fs->gd[i].bg_block_bitmap);
2055 for(j = fs->gd[i].bg_free_blocks_count
2063 ibm = get_blk(fs,fs->gd[i].bg_inode_bitmap);
2077 fs->gd[0].bg_free_inodes_count--;
2078 fs->gd[0].bg_used_dirs_count = 1;
2079 itab0 = (inode *)get_blk(fs,fs->gd[0].bg_inode_table);
2403 fs->gd[i].bg_block_bitmap, fs->gd[i].bg_inode_bitmap,
2404 fs->gd[i].bg_inode_table);