/dragonfly/usr.sbin/makefs/ffs/ |
H A D | ffs_alloc.c | 300 struct cg *cgp; in ffs_alloccg() local 315 cgp = (struct cg *)bp->b_data; in ffs_alloccg() 333 if (cgp->cg_frsum[allocsiz] != 0) in ffs_alloccg() 340 if (cgp->cg_cs.cs_nbfree == 0) { in ffs_alloccg() 386 struct cg *cgp; in ffs_alloccgblk() local 393 cgp = (struct cg *)bp->b_data; in ffs_alloccgblk() 416 ffs_clusteracct(fs, cgp, blkno, -1); in ffs_alloccgblk() 439 struct cg *cgp; in ffs_blkfree() local 463 cgp = (struct cg *)bp->b_data; in ffs_blkfree() 523 cg_blks(fs, cgp, in ffs_blkfree() [all …]
|
/dragonfly/sys/vfs/ufs/ |
H A D | ffs_alloc.c | 918 struct cg *cgp; in ffs_fragextend() local 1002 struct cg *cgp; in ffs_alloccg() local 1066 cgp->cg_frsum[i]++; in ffs_alloccg() 1118 struct cg *cgp; in ffs_alloccgblk() local 1206 cgp->cg_rotor = bno; in ffs_alloccgblk() 1235 struct cg *cgp; in ffs_clusteralloc() local 1358 struct cg *cgp; in ffs_nodealloccg() local 1379 if (!cg_chkmagic(cgp) || cgp->cg_cs.cs_nifree == 0) { in ffs_nodealloccg() 1488 struct cg *cgp; in ffs_blkfree_cg() local 1709 struct cg *cgp; in ffs_checkblk() local [all …]
|
H A D | fs.h | 381 #define cg_blktot(cgp) \ argument 384 : ((int32_t *)((uint8_t *)(cgp) + (cgp)->cg_btotoff))) 390 #define cg_inosused(cgp) \ argument 393 : ((uint8_t *)((uint8_t *)(cgp) + (cgp)->cg_iusedoff))) 394 #define cg_blksfree(cgp) \ argument 397 : ((uint8_t *)((uint8_t *)(cgp) + (cgp)->cg_freeoff))) 398 #define cg_chkmagic(cgp) \ argument 399 ((cgp)->cg_magic == CG_MAGIC || ((struct ocg *)(cgp))->cg_magic == CG_MAGIC) 401 ((uint8_t *)((uint8_t *)(cgp) + (cgp)->cg_clusteroff)) 402 #define cg_clustersum(cgp) \ argument [all …]
|
H A D | ffs_softdep.c | 1075 struct cg *cgp; in softdep_mount() local 1096 cgp = (struct cg *)bp->b_data; in softdep_mount() 1097 cstotal.cs_nffree += cgp->cg_cs.cs_nffree; in softdep_mount() 1098 cstotal.cs_nbfree += cgp->cg_cs.cs_nbfree; in softdep_mount() 1099 cstotal.cs_nifree += cgp->cg_cs.cs_nifree; in softdep_mount() 1100 cstotal.cs_ndir += cgp->cg_cs.cs_ndir; in softdep_mount() 1101 fs->fs_cs(fs, cyl) = cgp->cg_cs; in softdep_mount()
|
/dragonfly/usr.sbin/makefs/ |
H A D | makefs.h | 298 #define cg_chkmagic_swap(cgp, ns) \ argument 299 (ufs_rw32((cgp)->cg_magic, (ns)) == CG_MAGIC) 300 #define cg_inosused_swap(cgp, ns) \ argument 301 ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_iusedoff, (ns)))) 302 #define cg_blksfree_swap(cgp, ns) \ argument 303 ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_freeoff, (ns)))) 304 #define cg_clustersfree_swap(cgp, ns) \ argument 305 ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_clusteroff, (ns)))) 306 #define cg_clustersum_swap(cgp, ns) \ argument 307 ((int32_t *)((uintptr_t)(cgp) + ufs_rw32((cgp)->cg_clustersumoff, ns)))
|
H A D | ffs.c | 1133 struct cg *cgp; in ffs_write_inode() local 1160 cgp = (struct cg *)sbbuf; in ffs_write_inode() 1161 if (!cg_chkmagic_swap(cgp, fsopts->needswap)) in ffs_write_inode() 1164 assert (isclr(cg_inosused_swap(cgp, fsopts->needswap), cgino)); in ffs_write_inode() 1179 setbit(cg_inosused_swap(cgp, fsopts->needswap), cgino); in ffs_write_inode() 1180 ufs_add32(cgp->cg_cs.cs_nifree, -1, fsopts->needswap); in ffs_write_inode() 1184 ufs_add32(cgp->cg_cs.cs_ndir, 1, fsopts->needswap); in ffs_write_inode() 1193 initediblk = ufs_rw32(cgp->cg_initediblk, fsopts->needswap); in ffs_write_inode() 1195 initediblk < ufs_rw32(cgp->cg_niblk, fsopts->needswap)) { in ffs_write_inode() 1206 cgp->cg_initediblk = ufs_rw32(initediblk, fsopts->needswap); in ffs_write_inode()
|
/dragonfly/stand/boot/common/ |
H A D | fs.h | 478 #define cg_chkmagic(cgp) ((cgp)->cg_magic == CG_MAGIC) argument 479 #define cg_inosused(cgp) \ argument 480 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_iusedoff)) 481 #define cg_blksfree(cgp) \ argument 482 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_freeoff)) 483 #define cg_clustersfree(cgp) \ argument 484 ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_clusteroff)) 485 #define cg_clustersum(cgp) \ argument 486 ((int32_t *)((u_int8_t *)(cgp) + (cgp)->cg_clustersumoff))
|
/dragonfly/sbin/fsck/ |
H A D | utilities.c | 378 struct cg *cgp = &cgrp; in allocblk() local 395 if (!cg_chkmagic(cgp)) in allocblk() 400 clrbit(cg_blksfree(cgp), baseblk + k); in allocblk() 404 cgp->cg_cs.cs_nbfree--; in allocblk() 406 cgp->cg_cs.cs_nffree -= frags; in allocblk()
|
H A D | inode.c | 566 struct cg *cgp = &cgrp; in allocino() local 580 if (!cg_chkmagic(cgp)) in allocino() 582 setbit(cg_inosused(cgp), ino % sblock.fs_ipg); in allocino() 583 cgp->cg_cs.cs_nifree--; in allocino() 587 cgp->cg_cs.cs_ndir++; in allocino()
|