Lines Matching defs:cg
56 * The beginning of cylinder group cg in fs, is given by
57 * the ``cgbase(fs, cg)'' macro.
146 * thus changes to (struct cg) must keep its size within MINBSIZE.
328 struct csum *si_csp; /* (u) cg summary info buffer */
346 int32_t fs_dblkno; /* offset of first data after cg */
406 int32_t fs_cgrotor; /* last cg searched */
557 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(uint64_t))])
558 #define ACTIVECGOFF(cg) (1 << ((cg) % (NBBY * sizeof(uint64_t))))
559 #define ACTIVESET(fs, cg) do { \
561 ACTIVECGNUM((fs), (cg)) |= ACTIVECGOFF((cg)); \
563 #define ACTIVECLEAR(fs, cg) do { \
565 ACTIVECGNUM((fs), (cg)) &= ~ACTIVECGOFF((cg)); \
572 * cylinder group and the (struct cg) size.
575 /* base cg */ (sizeof(struct cg) + \
598 struct cg {
603 int16_t cg_old_ncyl; /* number of cyl's this cg */
604 int16_t cg_old_niblk; /* number of inode blocks this cg */
605 uint32_t cg_ndblk; /* number of data blocks this cg */
618 uint32_t cg_nclusterblks; /* number of clusters this cg */
619 uint32_t cg_niblk; /* number of inode blocks this cg */
623 uint32_t cg_ckhash; /* check-hash of this cg */
659 #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */