Home
last modified time | relevance | path

Searched refs:cs_nifree (Results 1 – 15 of 15) sorted by relevance

/netbsd/src/sbin/fsck_ext2fs/
Dpass5.c93 u_int32_t cs_ndir, cs_nbfree, cs_nifree; in pass5() local
98 cs_nifree = 0; in pass5()
192 cs_nifree += nifree; in pass5()
249 fs->e2fs.e2fs_ficount != cs_nifree)) { in pass5()
252 cs_nbfree, cs_nifree); in pass5()
255 fs->e2fs.e2fs_ficount != cs_nifree) in pass5()
258 fs->e2fs.e2fs_ficount = cs_nifree; in pass5()
/netbsd/src/sbin/fsck_ffs/
Dpass5.c296 newcg->cg_cs.cs_nifree = fs->fs_ipg; in pass5()
339 newcg->cg_cs.cs_nifree--; in pass5()
353 newcg->cg_cs.cs_nifree--; in pass5()
412 cstotal.cs_nifree += newcg->cg_cs.cs_nifree; in pass5()
421 cs->cs_nifree,newcg->cg_cs.cs_nifree, in pass5()
491 (long long int)fs->fs_cstotal.cs_nifree, in pass5()
492 (long long int)cstotal.cs_nifree, in pass5()
Dutilities.c665 fs->fs_cstotal.cs_nifree = in sb_oldfscompat_read()
666 fs->fs_old_cstotal.cs_nifree; in sb_oldfscompat_read()
698 fs->fs_old_cstotal.cs_nifree = fs->fs_cstotal.cs_nifree; in sb_oldfscompat_write()
Dinode.c764 cgp->cg_cs.cs_nifree--; in allocino()
765 sblock->fs_cstotal.cs_nifree--; in allocino()
766 sblock->fs_cs(fs, cg).cs_nifree--; in allocino()
864 cgp->cg_cs.cs_nifree++; in freeino()
865 sblock->fs_cstotal.cs_nifree++; in freeino()
866 sblock->fs_cs(fs, cg).cs_nifree++; in freeino()
Dmain.c505 (n_files -= maxino - UFS_ROOTINO - sblock->fs_cstotal.cs_nifree)) in checkfilesys()
/netbsd/src/sbin/resize_ffs/
Dresize_ffs.c556 cg->cg_cs.cs_nifree = newsb->fs_ipg; in initcg()
621 newsb->fs_cstotal.cs_nifree += cg->cg_cs.cs_nifree; in initcg()
1800 newsb->fs_cstotal.cs_nifree -= cgs[i]->cg_cs.cs_nifree; in shrink()
1829 slop += cgs[i]->cg_cs.cs_nifree; in shrink()
1831 slop -= oldsb->fs_ipg - cgs[i]->cg_cs.cs_nifree; in shrink()
1991 newsb->fs_cstotal.cs_nifree -= cg->cg_cs.cs_nifree; in rescan_inomaps()
1993 cg->cg_cs.cs_nifree = 0; in rescan_inomaps()
2006 cg->cg_cs.cs_nifree++; in rescan_inomaps()
2018 newsb->fs_cstotal.cs_nifree += cg->cg_cs.cs_nifree; in rescan_inomaps()
2071 newsb->fs_old_cstotal.cs_nifree = newsb->fs_cstotal.cs_nifree; in write_sbs()
[all …]
/netbsd/src/usr.sbin/makefs/
Dffs.c303 superblock->fs_old_cstotal.cs_nifree = superblock->fs_cstotal.cs_nifree; in ffs_makefs()
557 (long long)fs->fs_cstotal.cs_nifree, in ffs_create_image()
561 if ((off_t)(fs->fs_cstotal.cs_nifree + UFS_ROOTINO) < fsopts->inodes) { in ffs_create_image()
565 (long long)(fs->fs_cstotal.cs_nifree + UFS_ROOTINO), in ffs_create_image()
1098 if (fs->fs_cstotal.cs_nifree == 0) in ffs_write_inode()
1101 if (fs->fs_cs(fs, cg).cs_nifree == 0) in ffs_write_inode()
1106 ufs_add32(cgp->cg_cs.cs_nifree, -1, fsopts->needswap); in ffs_write_inode()
1107 fs->fs_cstotal.cs_nifree--; in ffs_write_inode()
1108 fs->fs_cs(fs, cg).cs_nifree--; in ffs_write_inode()
/netbsd/src/usr.sbin/makefs/ffs/
Dmkfs.c462 sblock.fs_cstotal.cs_nifree = 0; in ffs_mkfs()
482 sblock.fs_cstotal.cs_nifree = sblock.fs_ncg * sblock.fs_ipg - UFS_ROOTINO; in ffs_mkfs()
492 sblock.fs_old_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in ffs_mkfs()
554 sblock.fs_old_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in ffs_mkfs()
680 acg.cg_cs.cs_nifree += sblock.fs_ipg; in initcg()
686 acg.cg_cs.cs_nifree--; in initcg()
/netbsd/src/sys/ufs/ffs/
Dffs_bswap.c186 n->cs_nifree = bswap64(o->cs_nifree); in ffs_csumtotal_swap()
210 n->cg_cs.cs_nifree = bswap32(o->cg_cs.cs_nifree); in ffs_cg_swap()
Dffs_alloc.c589 if (fs->fs_cstotal.cs_nifree == 0) in ffs_valloc()
653 avgifree = fs->fs_cstotal.cs_nifree / fs->fs_ncg; in ffs_dirpref()
666 fs->fs_cs(fs, cg).cs_nifree >= avgifree && in ffs_dirpref()
673 fs->fs_cs(fs, cg).cs_nifree >= avgifree && in ffs_dirpref()
720 fs->fs_cs(fs, cg).cs_nifree >= minifree && in ffs_dirpref()
727 fs->fs_cs(fs, cg).cs_nifree >= minifree && in ffs_dirpref()
736 if (fs->fs_cs(fs, cg).cs_nifree >= avgifree) in ffs_dirpref()
739 if (fs->fs_cs(fs, cg).cs_nifree >= avgifree) in ffs_dirpref()
1279 if (fs->fs_cs(fs, cg).cs_nifree == 0) in ffs_nodealloccg()
1296 if (!cg_chkmagic(cgp, needswap) || cgp->cg_cs.cs_nifree == 0) in ffs_nodealloccg()
[all …]
Dfs.h240 int32_t cs_nifree; /* number of free inodes */ member
247 int64_t cs_nifree; /* number of free inodes */ member
Dffs_vfsops.c1676 fs->fs_cstotal.cs_nifree = fs->fs_old_cstotal.cs_nifree; in ffs_oldfscompat_read()
1739 fs->fs_old_cstotal.cs_nifree = fs->fs_cstotal.cs_nifree; in ffs_oldfscompat_write()
1921 sbp->f_ffree = fs->fs_cstotal.cs_nifree + fs->fs_pendinginodes; in ffs_statvfs()
/netbsd/src/sbin/newfs/
Dmkfs.c511 sblock.fs_cstotal.cs_nifree = 0; in mkfs()
531 sblock.fs_cstotal.cs_nifree = sblock.fs_ncg * sblock.fs_ipg - UFS_ROOTINO; in mkfs()
541 sblock.fs_old_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in mkfs()
737 sblock.fs_old_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in mkfs()
857 acg.cg_cs.cs_nifree += sblock.fs_ipg; in initcg()
861 acg.cg_cs.cs_nifree--; in initcg()
1375 acg.cg_cs.cs_nifree--; in iput()
1381 sblock.fs_cstotal.cs_nifree--; in iput()
1382 fscs_0->cs_nifree--; in iput()
/netbsd/src/sys/lib/libsa/
Dffs_bswap.c51 n->cs_nifree = bswap64(o->cs_nifree); in libsa_ffs_csumtotal_swap()
/netbsd/src/usr.sbin/dumpfs/
Ddumpfs.c283 fs->fs_cstotal.cs_nifree = fs->fs_old_cstotal.cs_nifree; in fix_superblock()
349 (long long)fs->fs_cstotal.cs_nifree, in print_superblock()
524 cs->cs_nbfree, cs->cs_ndir, cs->cs_nifree, cs->cs_nffree); in print_cgsum()
643 acg.cg_cs.cs_nifree, acg.cg_cs.cs_nffree); in dumpcg()