Lines Matching refs:group

424 			    ext4_group_t *group, umode_t mode,  in find_group_orlov()  argument
488 *group = grp; in find_group_orlov()
505 *group = grp+i; in find_group_orlov()
553 *group = grp; in find_group_orlov()
572 ext4_group_t *group, umode_t mode) in find_group_other() argument
597 *group = i; in find_group_other()
611 *group = parent_group + flex_size; in find_group_other()
612 if (*group > ngroups) in find_group_other()
613 *group = 0; in find_group_other()
614 return find_group_orlov(sb, parent, group, mode, NULL); in find_group_other()
620 *group = parent_group; in find_group_other()
621 desc = ext4_get_group_desc(sb, *group, NULL); in find_group_other()
635 *group = (*group + parent->i_ino) % ngroups; in find_group_other()
642 *group += i; in find_group_other()
643 if (*group >= ngroups) in find_group_other()
644 *group -= ngroups; in find_group_other()
645 desc = ext4_get_group_desc(sb, *group, NULL); in find_group_other()
655 *group = parent_group; in find_group_other()
657 if (++*group >= ngroups) in find_group_other()
658 *group = 0; in find_group_other()
659 desc = ext4_get_group_desc(sb, *group, NULL); in find_group_other()
676 static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino) in recently_deleted() argument
686 gdp = ext4_get_group_desc(sb, group, NULL); in recently_deleted()
719 static int find_inode_bit(struct super_block *sb, ext4_group_t group, in find_inode_bit() argument
732 if (check_recently_deleted && recently_deleted(sb, group, *ino)) { in find_inode_bit()
758 ext4_group_t group; in ext4_mark_inode_used() local
765 group = (ino - 1) / EXT4_INODES_PER_GROUP(sb); in ext4_mark_inode_used()
767 inode_bitmap_bh = ext4_read_inode_bitmap(sb, group); in ext4_mark_inode_used()
776 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_mark_inode_used()
801 block_bitmap_bh = ext4_read_block_bitmap(sb, group); in ext4_mark_inode_used()
812 ext4_lock_group(sb, group); in ext4_mark_inode_used()
817 ext4_free_clusters_after_init(sb, group, gdp)); in ext4_mark_inode_used()
819 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
821 ext4_unlock_group(sb, group); in ext4_mark_inode_used()
834 ext4_lock_group(sb, group); /* while we modify the bg desc */ in ext4_mark_inode_used()
851 ext4_lock_group(sb, group); in ext4_mark_inode_used()
858 ext4_group_desc_csum_set(sb, group, gdp); in ext4_mark_inode_used()
861 ext4_unlock_group(sb, group); in ext4_mark_inode_used()
936 ext4_group_t ngroups, group = 0; in __ext4_new_inode() local
1011 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
1018 ret2 = find_group_orlov(sb, dir, &group, mode, qstr); in __ext4_new_inode()
1020 ret2 = find_group_other(sb, dir, &group, mode); in __ext4_new_inode()
1023 EXT4_I(dir)->i_last_alloc_group = group; in __ext4_new_inode()
1036 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in __ext4_new_inode()
1047 grp = ext4_get_group_info(sb, group); in __ext4_new_inode()
1057 inode_bitmap_bh = ext4_read_inode_bitmap(sb, group); in __ext4_new_inode()
1068 ret2 = find_inode_bit(sb, group, inode_bitmap_bh, &ino); in __ext4_new_inode()
1072 if (group == 0 && (ino + 1) < EXT4_FIRST_INO(sb)) { in __ext4_new_inode()
1075 ext4_mark_group_bitmap_corrupted(sb, group, in __ext4_new_inode()
1098 ext4_lock_group(sb, group); in __ext4_new_inode()
1104 ret2 = find_inode_bit(sb, group, inode_bitmap_bh, &ino); in __ext4_new_inode()
1112 ext4_unlock_group(sb, group); in __ext4_new_inode()
1120 if (++group == ngroups) in __ext4_new_inode()
1121 group = 0; in __ext4_new_inode()
1147 block_bitmap_bh = ext4_read_block_bitmap(sb, group); in __ext4_new_inode()
1165 ext4_lock_group(sb, group); in __ext4_new_inode()
1170 ext4_free_clusters_after_init(sb, group, gdp)); in __ext4_new_inode()
1172 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1174 ext4_unlock_group(sb, group); in __ext4_new_inode()
1189 grp = ext4_get_group_info(sb, group); in __ext4_new_inode()
1199 ext4_lock_group(sb, group); /* while we modify the bg desc */ in __ext4_new_inode()
1217 ext4_lock_group(sb, group); in __ext4_new_inode()
1224 ext4_group_t f = ext4_flex_group(sbi, group); in __ext4_new_inode()
1233 ext4_group_desc_csum_set(sb, group, gdp); in __ext4_new_inode()
1235 ext4_unlock_group(sb, group); in __ext4_new_inode()
1249 flex_group = ext4_flex_group(sbi, group); in __ext4_new_inode()
1254 inode->i_ino = ino + group * EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
1270 ei->i_block_group = group; in __ext4_new_inode()
1284 ext4_mark_group_bitmap_corrupted(sb, group, in __ext4_new_inode()
1518 int ext4_init_inode_table(struct super_block *sb, ext4_group_t group, in ext4_init_inode_table() argument
1521 struct ext4_group_info *grp = ext4_get_group_info(sb, group); in ext4_init_inode_table()
1530 gdp = ext4_get_group_desc(sb, group, &group_desc_bh); in ext4_init_inode_table()
1563 group, used_blks, in ext4_init_inode_table()
1569 used_inos += group * EXT4_INODES_PER_GROUP(sb); in ext4_init_inode_table()
1579 group, ext4_itable_unused_count(sb, gdp), in ext4_init_inode_table()
1604 group); in ext4_init_inode_table()
1612 ext4_lock_group(sb, group); in ext4_init_inode_table()
1614 ext4_group_desc_csum_set(sb, group, gdp); in ext4_init_inode_table()
1615 ext4_unlock_group(sb, group); in ext4_init_inode_table()