Home
last modified time | relevance | path

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

/openbsd/src/sbin/fsck_ext2fs/
Dpass5.c61 u_int32_t cs_ndir, cs_nbfree, cs_nifree; in pass5() local
66 cs_nifree = 0; in pass5()
160 cs_nifree += nifree; in pass5()
217 fs->e2fs.e2fs_ficount != cs_nifree)) { in pass5()
220 cs_nbfree, cs_nifree); in pass5()
223 fs->e2fs.e2fs_ficount != cs_nifree) in pass5()
226 fs->e2fs.e2fs_ficount = cs_nifree; in pass5()
/openbsd/src/sys/ufs/ffs/
Dffs_alloc.c368 if (fs->fs_cstotal.cs_nifree == 0) in ffs_inode_alloc()
462 avgifree = fs->fs_cstotal.cs_nifree / fs->fs_ncg; in ffs_dirpref()
475 fs->fs_cs(fs, cg).cs_nifree >= avgifree && in ffs_dirpref()
482 fs->fs_cs(fs, cg).cs_nifree >= avgifree && in ffs_dirpref()
543 fs->fs_cs(fs, cg).cs_nifree >= minifree && in ffs_dirpref()
550 fs->fs_cs(fs, cg).cs_nifree >= minifree && in ffs_dirpref()
559 if (fs->fs_cs(fs, cg).cs_nifree >= avgifree) in ffs_dirpref()
562 if (fs->fs_cs(fs, cg).cs_nifree >= avgifree) in ffs_dirpref()
1103 if (fs->fs_cs(fs, cg).cs_nifree == 0) in ffs_nodealloccg()
1110 if (cgp->cg_cs.cs_nifree == 0) { in ffs_nodealloccg()
[all …]
Dffs_vfsops.c891 fs->fs_cstotal.cs_nifree = fs->fs_ffs1_cstotal.cs_nifree; in ffs1_compat_read()
908 fs->fs_ffs1_cstotal.cs_nifree = fs->fs_cstotal.cs_nifree; in ffs1_compat_write()
1024 sbp->f_ffree = fs->fs_cstotal.cs_nifree; in ffs_statfs()
Dfs.h178 int32_t cs_nifree; /* number of free inodes */ member
185 int64_t cs_nifree; /* number of free inodes */ member
/openbsd/src/sbin/fsck_ffs/
Dpass5.c204 newcg->cg_cs.cs_nifree = fs->fs_ipg; in pass5()
250 newcg->cg_cs.cs_nifree--; in pass5()
264 newcg->cg_cs.cs_nifree--; in pass5()
318 cstotal.cs_nifree += newcg->cg_cs.cs_nifree; in pass5()
Dutilities.c318 sblock.fs_ffs1_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in ckfini()
Dsetup.c584 sblock.fs_cstotal.cs_nifree = sblock.fs_ffs1_cstotal.cs_nifree; in readsb()
Dmain.c307 (n_files -= maxino - ROOTINO - sblock.fs_cstotal.cs_nifree)) in checkfilesys()
Dinode.c630 cgp->cg_cs.cs_nifree--; in allocino()
/openbsd/src/bin/df/
Dffs_df.c77 sfsp->f_ffree = sblock.fs_ffs1_cstotal.cs_nifree; in ffs_df()
85 sfsp->f_ffree = sblock.fs_cstotal.cs_nifree; in ffs_df()
/openbsd/src/usr.sbin/makefs/ffs/
Dmkfs.c418 sblock.fs_cstotal.cs_nifree = 0; in ffs_mkfs()
438 sblock.fs_cstotal.cs_nifree = sblock.fs_ncg * sblock.fs_ipg - ROOTINO; in ffs_mkfs()
448 sblock.fs_ffs1_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in ffs_mkfs()
510 sblock.fs_ffs1_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in ffs_mkfs()
630 acg.cg_cs.cs_nifree += sblock.fs_ipg; in initcg()
636 acg.cg_cs.cs_nifree--; in initcg()
/openbsd/src/sbin/newfs/
Dmkfs.c476 sblock.fs_cstotal.cs_nifree = sblock.fs_ncg * sblock.fs_ipg - ROOTINO; in mkfs()
488 sblock.fs_ffs1_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in mkfs()
590 sblock.fs_ffs1_cstotal.cs_nifree = sblock.fs_cstotal.cs_nifree; in mkfs()
680 acg.cg_cs.cs_nifree += sblock.fs_ipg; in initcg()
684 acg.cg_cs.cs_nifree--; in initcg()
986 acg.cg_cs.cs_nifree--; in iput()
992 sblock.fs_cstotal.cs_nifree--; in iput()
993 fscs[0].cs_nifree--; in iput()
/openbsd/src/usr.sbin/makefs/
Dffs.c293 superblock->fs_ffs1_cstotal.cs_nifree = superblock->fs_cstotal.cs_nifree; in ffs_makefs()
527 if ((off_t)(fs->fs_cstotal.cs_nifree + ROOTINO) < fsopts->inodes) { in ffs_create_image()
531 (long long)(fs->fs_cstotal.cs_nifree + ROOTINO), in ffs_create_image()
950 if (fs->fs_cstotal.cs_nifree == 0) in ffs_write_inode()
953 if (fs->fs_cs(fs, cg).cs_nifree == 0) in ffs_write_inode()
958 cgp->cg_cs.cs_nifree -= 1; in ffs_write_inode()
959 fs->fs_cstotal.cs_nifree--; in ffs_write_inode()
960 fs->fs_cs(fs, cg).cs_nifree--; in ffs_write_inode()
/openbsd/src/sbin/dumpfs/
Ddumpfs.c235 (intmax_t)afs.fs_cstotal.cs_nifree, in dumpfs()
251 afs.fs_ffs1_cstotal.cs_nifree, afs.fs_ffs1_cstotal.cs_nffree); in dumpfs()
313 cs->cs_nbfree, cs->cs_ndir, cs->cs_nifree, cs->cs_nffree); in dumpfs()
382 acg.cg_cs.cs_nifree, acg.cg_cs.cs_nffree); in dumpcg()
/openbsd/src/sbin/growfs/
Dgrowfs.c267 sblock.fs_ffs1_cstotal.cs_nifree = in growfs()
268 (int32_t)sblock.fs_cstotal.cs_nifree; in growfs()
401 acg.cg_cs.cs_nifree += sblock.fs_ipg; in initcg()
405 acg.cg_cs.cs_nifree--; in initcg()
477 sblock.fs_cstotal.cs_nifree += acg.cg_cs.cs_nifree; in initcg()
2166 fs->fs_cstotal.cs_nifree = fs->fs_ffs1_cstotal.cs_nifree; in ffs1_sb_update()