Lines Matching refs:e2fs_gcount
611 avgifree = fs->e2fs_ficount / fs->e2fs_gcount; in ext2_dirpref()
612 avgbfree = fs->e2fs_fbcount / fs->e2fs_gcount; in ext2_dirpref()
613 avgndir = fs->e2fs_total_dir / fs->e2fs_gcount; in ext2_dirpref()
620 prefcg = arc4random() % fs->e2fs_gcount; in ext2_dirpref()
623 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
667 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
684 for (cg = prefcg; cg < fs->e2fs_gcount; cg++) in ext2_dirpref()
769 for (i = 1; i < fs->e2fs_gcount; i *= 2) { in ext2_hashalloc()
771 if (cg >= fs->e2fs_gcount) in ext2_hashalloc()
772 cg -= fs->e2fs_gcount; in ext2_hashalloc()
782 cg = (icg + 2) % fs->e2fs_gcount; in ext2_hashalloc()
783 for (i = 2; i < fs->e2fs_gcount; i++) { in ext2_hashalloc()
788 if (cg == fs->e2fs_gcount) in ext2_hashalloc()
804 return ((fs->e2fs_gcount + EXT2_DESCS_PER_BLOCK(fs) - 1) / in ext2_cg_number_gdb_nometa()
1478 if ((u_int)ino > fs->e2fs_ipg * fs->e2fs_gcount) in ext2_vfree()