diff options
author | phk <phk@FreeBSD.org> | 1999-09-19 12:43:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-09-19 12:43:34 +0000 |
commit | b547f6c567b41efd85da3ddd236592d50e335802 (patch) | |
tree | 2b069648cedf09dd4388892fa18913448875f29b | |
parent | caa7271ba9ec2e12a164b399796237de1e1cf7e6 (diff) | |
download | FreeBSD-src-b547f6c567b41efd85da3ddd236592d50e335802.zip FreeBSD-src-b547f6c567b41efd85da3ddd236592d50e335802.tar.gz |
Two more devstat_end_transaction() -> devstat_end_transaction_buf().
-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; |