Lines Matching defs:cg
57 * The beginning of cylinder group cg in fs, is given by
58 * the ``cgbase(fs, cg)'' macro.
108 * thus changes to (struct cg) must keep its size within MINBSIZE.
266 int32_t fs_dblkno; /* offset of first data after cg */
326 int32_t fs_cgrotor; /* last cg searched */
329 struct csum *fs_csp; /* (u) cg summary info buffer */
349 int32_t fs_save_cgsize; /* save real cg size to use fs_bsize */
432 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(int))])
433 #define ACTIVECGOFF(cg) (1 << ((cg) % (NBBY * sizeof(int))))
434 #define ACTIVESET(fs, cg) do { \
436 ACTIVECGNUM((fs), (cg)) |= ACTIVECGOFF((cg)); \
438 #define ACTIVECLEAR(fs, cg) do { \
440 ACTIVECGNUM((fs), (cg)) &= ~ACTIVECGOFF((cg)); \
447 * cylinder group and the (struct cg) size.
450 /* base cg */ (sizeof(struct cg) + sizeof(int32_t) + \
473 struct cg {
478 int16_t cg_old_ncyl; /* number of cyl's this cg */
479 int16_t cg_old_niblk; /* number of inode blocks this cg */
480 u_int32_t cg_ndblk; /* number of data blocks this cg */
493 u_int32_t cg_nclusterblks; /* number of clusters this cg */
494 u_int32_t cg_niblk; /* number of inode blocks this cg */
534 #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */