diff options
author | phk <phk@FreeBSD.org> | 1999-08-14 11:40:51 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-14 11:40:51 +0000 |
commit | 5f45261e990bb420f6394e615c3495668886dfe9 (patch) | |
tree | 66dfc8aa5c9515f4ec0197d4ad3f1c2445413016 /sys/kern/kern_physio.c | |
parent | 5ff2615ae3524707b482556fcc6668d139f2cd67 (diff) | |
download | FreeBSD-src-5f45261e990bb420f6394e615c3495668886dfe9.zip FreeBSD-src-5f45261e990bb420f6394e615c3495668886dfe9.tar.gz |
Spring cleaning around strategy and disklabels/slices:
Introduce BUF_STRATEGY(struct buf *, int flag) macro, and use it throughout.
please see comment in sys/conf.h about the flag argument.
Remove strategy argument from all the diskslice/label/bad144
implementations, it should be found from the dev_t.
Remove bogus and unused strategy1 routines.
Remove open/close arguments from dssize(). Pick them up from dev_t.
Remove unused and unfinished setgeom support from diskslice/label/bad144 code.
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r-- | sys/kern/kern_physio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 2208319..3455f99 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -16,7 +16,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: kern_physio.c,v 1.34 1999/05/08 06:39:37 phk Exp $ + * $Id: kern_physio.c,v 1.35 1999/06/26 02:46:02 mckusick Exp $ */ #include <sys/param.h> @@ -35,18 +35,17 @@ static struct buf * phygetvpbuf(dev_t dev, int resid); int physread(dev_t dev, struct uio *uio, int ioflag) { - return(physio(devsw(dev)->d_strategy, NULL, dev, 1, minphys, uio)); + return(physio(NULL, dev, 1, minphys, uio)); } int physwrite(dev_t dev, struct uio *uio, int ioflag) { - return(physio(devsw(dev)->d_strategy, NULL, dev, 0, minphys, uio)); + return(physio(NULL, dev, 0, minphys, uio)); } int -physio(strategy, bp, dev, rw, minp, uio) - d_strategy_t *strategy; +physio(bp, dev, rw, minp, uio) struct buf *bp; dev_t dev; int rw; @@ -114,7 +113,7 @@ physio(strategy, bp, dev, rw, minp, uio) } /* perform transfer */ - (*strategy)(bp); + BUF_STRATEGY(bp, 0); spl = splbio(); while ((bp->b_flags & B_DONE) == 0) |