aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-01-05 09:55:26 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-01-05 09:55:26 +0000
commit973418dbf50df21206133827a73a1f0efdffac3c (patch)
tree5a3d7cc78809f47284c04877cc6f8a505c31f616 /sys/fs
parentbda19384a16769009d873da4e59be46fc1f01546 (diff)
Notes
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/specfs/spec_vnops.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index e0274bf8a166..a3d0d66e2618 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -68,7 +68,6 @@ static int spec_poll(struct vop_poll_args *);
static int spec_print(struct vop_print_args *);
static int spec_read(struct vop_read_args *);
static int spec_strategy(struct vop_strategy_args *);
-static int spec_xstrategy(struct vop_strategy_args *);
static int spec_specstrategy(struct vop_specstrategy_args *);
static int spec_write(struct vop_write_args *);
@@ -524,22 +523,13 @@ SYSCTL_INT(_debug, OID_AUTO, doslowdown, CTLFLAG_RW, &doslowdown, 0, "");
* Just call the device strategy routine
*/
static int
-spec_xstrategy(ap)
- struct vop_strategy_args /* {
- struct vnode *a_vp;
- struct buf *a_bp;
- } */ *ap;
+spec_xstrategy(struct vnode *vp, struct buf *bp)
{
- struct buf *bp;
- struct vnode *vp;
struct mount *mp;
int error;
struct cdevsw *dsw;
struct thread *td = curthread;
- bp = ap->a_bp;
- vp = ap->a_vp;
-
KASSERT(bp->b_iocmd == BIO_READ ||
bp->b_iocmd == BIO_WRITE ||
bp->b_iocmd == BIO_DELETE,
@@ -632,7 +622,7 @@ spec_strategy(ap)
backtrace();
once++;
}
- return spec_xstrategy(ap);
+ return spec_xstrategy(ap->a_vp, ap->a_bp);
}
static int
@@ -643,7 +633,7 @@ spec_specstrategy(ap)
} */ *ap;
{
- return spec_xstrategy((void *)ap);
+ return spec_xstrategy(ap->a_vp, ap->a_bp);
}
static int