Home
last modified time | relevance | path

Searched refs:e2fs_gcount (Results 1 – 4 of 4) sorted by relevance

/freebsd/sys/fs/ext2fs/
H A Dext2_vfsops.c375 cg_count = fs->e2fs_gcount; in ext2_cg_validate()
377 for (i = 0; i < fs->e2fs_gcount; i++) { in ext2_cg_validate()
381 i == fs->e2fs_gcount - 1) { in ext2_cg_validate()
388 if ((cg_count == fs->e2fs_gcount) && in ext2_cg_validate()
618 fs->e2fs_gcount = howmany(fs->e2fs_bcount - in ext2_compute_sb_data()
620 if (fs->e2fs_gcount > ((uint64_t)1 << 32) - EXT2_DESCS_PER_BLOCK(fs)) { in ext2_compute_sb_data()
638 e2fs_gdbcount_alloc = howmany(fs->e2fs_gcount, e2fs_descpb); in ext2_compute_sb_data()
641 e2fs_gdbcount_alloc = howmany(fs->e2fs_gcount, in ext2_compute_sb_data()
644 fs->e2fs_gdbcount = howmany(fs->e2fs_gcount, e2fs_descpb); in ext2_compute_sb_data()
647 fs->e2fs_contigdirs = malloc(fs->e2fs_gcount * in ext2_compute_sb_data()
[all …]
H A Dext2_alloc.c609 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()
[all …]
H A Dext2fs.h173 uint32_t e2fs_gcount; /* Number of groups */ member
H A Dext2_csum.c720 for (i = 0; i < fs->e2fs_gcount; i++) { in ext2_gd_csum_verify()
740 for (i = 0; i < fs->e2fs_gcount; i++) in ext2_gd_csum_set()