Lines Matching refs:e2fs
130 if (fs->e2fs.e2fs_fbcount == 0) in ext2fs_alloc()
136 if (bpref >= fs->e2fs.e2fs_bcount) in ext2fs_alloc()
181 if (fs->e2fs.e2fs_ficount == 0) in ext2fs_valloc()
188 ipref = cg * fs->e2fs.e2fs_ipg + 1; in ext2fs_valloc()
214 avgifree = fs->e2fs.e2fs_ficount / fs->e2fs_ncg; in ext2fs_dirpref()
279 return fs->e2fs.e2fs_bpg * cg + fs->e2fs.e2fs_first_dblock + 1; in ext2fs_blkpref()
391 end = howmany(fs->e2fs.e2fs_fpg, NBBY) - start; in ext2fs_alloccg()
423 fs->e2fs.e2fs_fbcount--; in ext2fs_alloccg()
427 return cg * fs->e2fs.e2fs_fpg + fs->e2fs.e2fs_first_dblock + bno; in ext2fs_alloccg()
468 KASSERT(fs2h16(fs->e2fs_gd[cg].ext2bgd_nifree) == fs->e2fs.e2fs_ipg); in ext2fs_nodealloccg()
474 ipref %= fs->e2fs.e2fs_ipg; in ext2fs_nodealloccg()
479 len = howmany(fs->e2fs.e2fs_ipg - ipref, NBBY); in ext2fs_nodealloccg()
501 fs->e2fs.e2fs_ficount--; in ext2fs_nodealloccg()
506 return cg * fs->e2fs.e2fs_ipg + ipref + 1; in ext2fs_nodealloccg()
529 if ((u_int)bno >= fs->e2fs.e2fs_bcount) { in ext2fs_blkfree()
551 fs->e2fs.e2fs_fbcount++; in ext2fs_blkfree()
574 if ((u_int)ino > fs->e2fs.e2fs_icount || (u_int)ino < EXT2_FIRSTINO) in ext2fs_vfree()
592 ino = (ino - 1) % fs->e2fs.e2fs_ipg; in ext2fs_vfree()
601 fs->e2fs.e2fs_ficount++; in ext2fs_vfree()
629 len = howmany(fs->e2fs.e2fs_fpg, NBBY) - start; in ext2fs_mapsearch()
682 (ioff + 1) >= (fs->e2fs.e2fs_ipg - in ext2fs_cg_update()
685 h2fs16(fs->e2fs.e2fs_ipg - (ioff + 1)); in ext2fs_cg_update()
810 crc32 = ext2fs_crc32c(~0, fs->e2fs.e2fs_uuid, in ext2fs_cg_get_csum()
811 sizeof(fs->e2fs.e2fs_uuid)); in ext2fs_cg_get_csum()
825 crc = crc16(~0, (uint8_t *)fs->e2fs.e2fs_uuid, in ext2fs_cg_get_csum()
826 sizeof(fs->e2fs.e2fs_uuid)); in ext2fs_cg_get_csum()
847 for(i=0; i < fs->e2fs.e2fs_bpg - fs2h16(gd->ext2bgd_nbfree); i++) in ext2fs_init_bb()
890 ioff = fs->e2fs.e2fs_ipg - fs2h16(gd->ext2bgd_itable_unused_lo); in ext2fs_cg_verify_and_initialize()