From 4be2eb8c49a786d78796ed36e7ceaa8fdb198b27 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 8 May 1999 06:40:31 +0000 Subject: I got tired of seeing all the cdevsw[major(foo)] all over the place. Made a new (inline) function devsw(dev_t dev) and substituted it. Changed to the BDEV variant to this format as well: bdevsw(dev_t dev) DEVFS will eventually benefit from this change too. --- sys/dev/vinum/vinumrequest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/vinum/vinumrequest.c') diff --git a/sys/dev/vinum/vinumrequest.c b/sys/dev/vinum/vinumrequest.c index 477ec4065f4e..a05c6e6ea525 100644 --- a/sys/dev/vinum/vinumrequest.c +++ b/sys/dev/vinum/vinumrequest.c @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: vinumrequest.c,v 1.21 1999/05/07 08:07:09 grog Exp $ + * $Id: vinumrequest.c,v 1.22 1999/05/07 10:10:07 phk Exp $ */ #include @@ -390,7 +390,7 @@ launch_requests(struct request *rq, int reviveok) logrq(loginfo_rqe, (union rqinfou) rqe, rq->bp); #endif /* fire off the request */ - (*bdevsw(major(rqe->b.b_dev))->d_strategy) (&rqe->b); + (*bdevsw(rqe->b.b_dev)->d_strategy) (&rqe->b); } /* XXX Do we need caching? Think about this more */ } @@ -865,7 +865,7 @@ sdio(struct buf *bp) sbp->b.b_vp->v_numoutput); #endif s = splbio(); - (*bdevsw(major(sbp->b.b_dev))->d_strategy) (&sbp->b); + (*bdevsw(sbp->b.b_dev)->d_strategy) (&sbp->b); splx(s); } -- cgit v1.2.3