diff options
-rw-r--r-- | sys/dev/fdc/fdc.c | 8 | ||||
-rw-r--r-- | sys/isa/fd.c | 8 | ||||
-rw-r--r-- | sys/pc98/cbus/fdc.c | 8 | ||||
-rw-r--r-- | sys/pc98/pc98/fd.c | 8 |
4 files changed, 4 insertions, 28 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 38fd38e..f51161b 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -2099,14 +2099,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/isa/fd.c b/sys/isa/fd.c index 38fd38e..f51161b 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -2099,14 +2099,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/cbus/fdc.c b/sys/pc98/cbus/fdc.c index 63bfecd..e7acaf3 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 63bfecd..e7acaf3 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; |