FreeBSD/sys/geom/sched/g_sched.c
/*
 * Update the stats when this request is done.
 */
Update the stats when this request is done.
Update the stats when this request is done .
static void
g_sched_update_stats(struct bio *bio)
{
	me.gs_done++;
	me.gs_in_flight--;
	me.gs_bytes_in_flight -= bio->bio_length;
	if (bio->bio_cmd == BIO_WRITE) {
		me.gs_writes_in_flight--;
		me.gs_write_bytes_in_flight -= bio->bio_length;
	}
}
static void g_sched_update_stats ( struct bio * bio ) { me . gs_done ++ ; me . gs_in_flight -- ; me . gs_bytes_in_flight -= bio -> bio_length ; if ( bio -> bio_cmd == BIO_WRITE ) { me . gs_writes_in_flight -- ; me . gs_write_bytes_in_flight -= bio -> bio_length ; } }
Update the stats when this request is done.
Update the stats when this request is done .