summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-09-18 21:30:27 +0000
committerphk <phk@FreeBSD.org>1999-09-18 21:30:27 +0000
commita41657c540b5754aa0245f0ec705f900dfccc4a9 (patch)
treec5daa64e6f693863e10c3e27794090d8a5d8e1e7 /sys/dev/ata
parent924236547e11eeafee3db1e24987bb763df57937 (diff)
downloadFreeBSD-src-a41657c540b5754aa0245f0ec705f900dfccc4a9.zip
FreeBSD-src-a41657c540b5754aa0245f0ec705f900dfccc4a9.tar.gz
Use devstat_end_transaction_buf() rather than Use devstat_end_transaction()
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/atapi-fd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c
index 7191f79..5c98107 100644
--- a/sys/dev/ata/atapi-fd.c
+++ b/sys/dev/ata/atapi-fd.c
@@ -395,9 +395,7 @@ afd_done(struct atapi_request *request)
else
bp->b_resid += request->bytecount;
- devstat_end_transaction(&fdp->stats, bp->b_bcount - bp->b_resid,
- DEVSTAT_TAG_NONE,
- (bp->b_flags&B_READ) ? DEVSTAT_READ:DEVSTAT_WRITE);
+ devstat_end_transaction_buf(&fdp->stats, bp);
biodone(bp);
afd_start(fdp);
OpenPOWER on IntegriCloud