Lines Matching refs:group
204 int group = -1, i; in find_group_orlov() local
218 get_random_bytes(&group, sizeof(group)); in find_group_orlov()
219 parent_group = (unsigned)group % ngroups; in find_group_orlov()
221 group = (parent_group + i) % ngroups; in find_group_orlov()
222 desc = ext3_get_group_desc (sb, group, NULL); in find_group_orlov()
231 best_group = group; in find_group_orlov()
244 group = (parent_group + i) % ngroups; in find_group_orlov()
245 desc = ext3_get_group_desc (sb, group, NULL); in find_group_orlov()
254 return group; in find_group_orlov()
259 group = (parent_group + i) % ngroups; in find_group_orlov()
260 desc = ext3_get_group_desc (sb, group, NULL); in find_group_orlov()
264 return group; in find_group_orlov()
284 int group, i; in find_group_other() local
289 group = parent_group; in find_group_other()
290 desc = ext3_get_group_desc (sb, group, NULL); in find_group_other()
293 return group; in find_group_other()
304 group = (group + parent->i_ino) % ngroups; in find_group_other()
311 group += i; in find_group_other()
312 if (group >= ngroups) in find_group_other()
313 group -= ngroups; in find_group_other()
314 desc = ext3_get_group_desc (sb, group, NULL); in find_group_other()
317 return group; in find_group_other()
324 group = parent_group; in find_group_other()
326 if (++group >= ngroups) in find_group_other()
327 group = 0; in find_group_other()
328 desc = ext3_get_group_desc (sb, group, NULL); in find_group_other()
330 return group; in find_group_other()
352 int group; in ext3_new_inode() local
377 group = find_group_orlov(sb, dir); in ext3_new_inode()
379 group = find_group_other(sb, dir); in ext3_new_inode()
382 if (group == -1) in ext3_new_inode()
388 gdp = ext3_get_group_desc(sb, group, &bh2); in ext3_new_inode()
393 bitmap_bh = read_inode_bitmap(sb, group); in ext3_new_inode()
409 if (!ext3_set_bit_atomic(sb_bgl_lock(sbi, group), in ext3_new_inode()
434 if (++group == sbi->s_groups_count) in ext3_new_inode()
435 group = 0; in ext3_new_inode()
441 ino += group * EXT3_INODES_PER_GROUP(sb) + 1; in ext3_new_inode()
445 "block_group = %d, inode=%lu", group, ino); in ext3_new_inode()
453 spin_lock(sb_bgl_lock(sbi, group)); in ext3_new_inode()
458 spin_unlock(sb_bgl_lock(sbi, group)); in ext3_new_inode()
495 ei->i_block_group = group; in ext3_new_inode()