iosched: Move bio_next() inside of the CAM_IOSCHED_DYNAMIC ifdef

bio_next() is only used by the dynamic scheduler, so move it under that
ifdef.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-05-01 16:53:13 -06:00
parent 47d75c29f5
commit 1599fc904d

View File

@ -1505,6 +1505,7 @@ cam_iosched_get_trim(struct cam_iosched_softc *isc)
}
#ifdef CAM_IOSCHED_DYNAMIC
static struct bio *
bio_next(struct bio *bp)
{
@ -1518,7 +1519,6 @@ bio_next(struct bio *bp)
return bp;
}
#ifdef CAM_IOSCHED_DYNAMIC
static bool
cam_iosched_rate_limited(struct iop_stats *ios)
{