FreeBSD/sbin/fsck_ffs/gjournal.c
/*
 * Free all non-busy cylinder groups without storing the dirty ones.
 */
Free all non-busy cylinder groups without storing the dirty ones.
Free all non - busy cylinder groups without storing the dirty ones .
static void
cancelcgs(void)
{
	struct cgchain *cgc;
	assert(disk != NULL && fs != NULL);
	while ((cgc = LIST_FIRST(&cglist)) != NULL) {
		if (cgc->cgc_busy)
			continue;
		LIST_REMOVE(cgc, cgc_next);
		free(cgc);
	}
}
static void cancelcgs ( void ) { struct cgchain * cgc ; assert ( disk != NULL && fs != NULL ) ; while ( ( cgc = LIST_FIRST ( & cglist ) ) != NULL ) { if ( cgc -> cgc_busy ) continue ; LIST_REMOVE ( cgc , cgc_next ) ; free ( cgc ) ; } }
Free all non-busy cylinder groups without storing the dirty ones.
Free all non - busy cylinder groups without storing the dirty ones .
//printf("%s: Canceled cg=%d\n", __func__, cgc->cgc_cg.cg_cgx);