Lines Matching refs:e2fs_gcount
609 avgifree = fs->e2fs_ficount / fs->e2fs_gcount; in ext2_dirpref()
610 avgbfree = fs->e2fs_fbcount / fs->e2fs_gcount; in ext2_dirpref()
611 avgndir = fs->e2fs_total_dir / fs->e2fs_gcount; in ext2_dirpref()
618 prefcg = arc4random() % fs->e2fs_gcount; in ext2_dirpref()
621 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
665 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
682 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
767 for (i = 1; i < fs->e2fs_gcount; i *= 2) { in ext2_hashalloc()
769 if (cg >= fs->e2fs_gcount) in ext2_hashalloc()
770 cg -= fs->e2fs_gcount; in ext2_hashalloc()
780 cg = (icg + 2) % fs->e2fs_gcount; in ext2_hashalloc()
781 for (i = 2; i < fs->e2fs_gcount; i++) { in ext2_hashalloc()
786 if (cg == fs->e2fs_gcount) in ext2_hashalloc()
802 return ((fs->e2fs_gcount + EXT2_DESCS_PER_BLOCK(fs) - 1) / in ext2_cg_number_gdb_nometa()
1476 if ((u_int)ino > fs->e2fs_ipg * fs->e2fs_gcount) in ext2_vfree()