Lines Matching refs:group
419 ext4_group_t *group, umode_t mode, in find_group_orlov() argument
484 *group = grp; in find_group_orlov()
501 *group = grp+i; in find_group_orlov()
547 *group = grp; in find_group_orlov()
566 ext4_group_t *group, umode_t mode) in find_group_other() argument
591 *group = i; in find_group_other()
605 *group = parent_group + flex_size; in find_group_other()
606 if (*group > ngroups) in find_group_other()
607 *group = 0; in find_group_other()
608 return find_group_orlov(sb, parent, group, mode, NULL); in find_group_other()
614 *group = parent_group; in find_group_other()
615 desc = ext4_get_group_desc(sb, *group, NULL); in find_group_other()
629 *group = (*group + parent->i_ino) % ngroups; in find_group_other()
636 *group += i; in find_group_other()
637 if (*group >= ngroups) in find_group_other()
638 *group -= ngroups; in find_group_other()
639 desc = ext4_get_group_desc(sb, *group, NULL); in find_group_other()
649 *group = parent_group; in find_group_other()
651 if (++*group >= ngroups) in find_group_other()
652 *group = 0; in find_group_other()
653 desc = ext4_get_group_desc(sb, *group, NULL); in find_group_other()
670 static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino) in recently_deleted() argument
680 gdp = ext4_get_group_desc(sb, group, NULL); in recently_deleted()
713 static int find_inode_bit(struct super_block *sb, ext4_group_t group, in find_inode_bit() argument
724 recently_deleted(sb, group, *ino)) { in find_inode_bit()
753 ext4_group_t ngroups, group = 0; in __ext4_new_inode() local
866 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
873 ret2 = find_group_orlov(sb, dir, &group, mode, qstr); in __ext4_new_inode()
875 ret2 = find_group_other(sb, dir, &group, mode); in __ext4_new_inode()
878 EXT4_I(dir)->i_last_alloc_group = group; in __ext4_new_inode()
891 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
901 grp = ext4_get_group_info(sb, group); in __ext4_new_inode()
907 inode_bitmap_bh = ext4_read_inode_bitmap(sb, group); in __ext4_new_inode()
916 ret2 = find_inode_bit(sb, group, inode_bitmap_bh, &ino); in __ext4_new_inode()
920 if (group == 0 && (ino + 1) < EXT4_FIRST_INO(sb)) { in __ext4_new_inode()
923 ext4_mark_group_bitmap_corrupted(sb, group, in __ext4_new_inode()
945 ext4_lock_group(sb, group); in __ext4_new_inode()
951 ret2 = find_inode_bit(sb, group, inode_bitmap_bh, &ino); in __ext4_new_inode()
959 ext4_unlock_group(sb, group); in __ext4_new_inode()
967 if (++group == ngroups) in __ext4_new_inode()
968 group = 0; in __ext4_new_inode()
993 block_bitmap_bh = ext4_read_block_bitmap(sb, group); in __ext4_new_inode()
1010 ext4_lock_group(sb, group); in __ext4_new_inode()
1015 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1016 ext4_block_bitmap_csum_set(sb, group, gdp, in __ext4_new_inode()
1018 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1020 ext4_unlock_group(sb, group); in __ext4_new_inode()
1032 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in __ext4_new_inode()
1035 ext4_lock_group(sb, group); /* while we modify the bg desc */ in __ext4_new_inode()
1052 ext4_lock_group(sb, group); in __ext4_new_inode()
1059 ext4_group_t f = ext4_flex_group(sbi, group); in __ext4_new_inode()
1066 ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh, in __ext4_new_inode()
1068 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1070 ext4_unlock_group(sb, group); in __ext4_new_inode()
1084 flex_group = ext4_flex_group(sbi, group); in __ext4_new_inode()
1089 inode->i_ino = ino + group * EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
1105 ei->i_block_group = group; in __ext4_new_inode()
1119 ext4_mark_group_bitmap_corrupted(sb, group, in __ext4_new_inode()
1350 int ext4_init_inode_table(struct super_block *sb, ext4_group_t group, in ext4_init_inode_table() argument
1353 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in ext4_init_inode_table()
1368 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1401 group, used_blks, in ext4_init_inode_table()
1407 used_inos += group * EXT4_INODES_PER_GROUP(sb); in ext4_init_inode_table()
1417 group, ext4_itable_unused_count(sb, gdp), in ext4_init_inode_table()
1442 group); in ext4_init_inode_table()
1450 ext4_lock_group(sb, group); in ext4_init_inode_table()
1452 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()
1453 ext4_unlock_group(sb, group); in ext4_init_inode_table()