aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-09-19 12:43:34 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-09-19 12:43:34 +0000
commit11a0be87e30848b33d057df78288c1b6c02a7bd4 (patch)
tree86aa2f06e5852831602b46013936ebc0f58a269e /sys/pc98
parentb6f18be1494b4331a3c90be60fd953a025625453 (diff)
downloadsrc-11a0be87e30848b33d057df78288c1b6c02a7bd4.tar.gz
src-11a0be87e30848b33d057df78288c1b6c02a7bd4.zip
Two more devstat_end_transaction() -> devstat_end_transaction_buf().
Notes
Notes: svn path=/head/; revision=51413
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/fdc.c8
-rw-r--r--sys/pc98/pc98/fd.c8
2 files changed, 2 insertions, 14 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index 63bfecdd97cf..e7acaf300577 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -2548,14 +2548,8 @@ retrier(struct fdc_data *fdc)
bp->b_error = EIO;
bp->b_resid += bp->b_bcount - fdc->fd->skip;
fdc->bp = NULL;
-
- /* Tell devstat we have finished with the transaction */
- devstat_end_transaction(&fdc->fd->device_stats,
- bp->b_bcount - bp->b_resid,
- DEVSTAT_TAG_NONE,
- (bp->b_flags & B_READ) ? DEVSTAT_READ :
- DEVSTAT_WRITE);
fdc->fd->skip = 0;
+ devstat_end_transaction_buf(&fdc->fd->device_stats, bp);
biodone(bp);
fdc->state = FINDWORK;
fdc->flags |= FDC_NEEDS_RESET;
diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c
index 63bfecdd97cf..e7acaf300577 100644
--- a/sys/pc98/pc98/fd.c
+++ b/sys/pc98/pc98/fd.c
@@ -2548,14 +2548,8 @@ retrier(struct fdc_data *fdc)
bp->b_error = EIO;
bp->b_resid += bp->b_bcount - fdc->fd->skip;
fdc->bp = NULL;
-
- /* Tell devstat we have finished with the transaction */
- devstat_end_transaction(&fdc->fd->device_stats,
- bp->b_bcount - bp->b_resid,
- DEVSTAT_TAG_NONE,
- (bp->b_flags & B_READ) ? DEVSTAT_READ :
- DEVSTAT_WRITE);
fdc->fd->skip = 0;
+ devstat_end_transaction_buf(&fdc->fd->device_stats, bp);
biodone(bp);
fdc->state = FINDWORK;
fdc->flags |= FDC_NEEDS_RESET;