summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ccd.c
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/geom/geom_ccd.c
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/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index a889ca3..e13ac65 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -954,16 +954,9 @@ ccdintr(cs, bp)
/*
* Request is done for better or worse, wakeup the top half.
*/
- /* Record device statistics */
- devstat_end_transaction(&cs->device_stats,
- bp->b_bcount - bp->b_resid,
- (bp->b_flags & B_ORDERED) ?
- DEVSTAT_TAG_ORDERED : DEVSTAT_TAG_SIMPLE,
- (bp->b_flags & B_READ) ? DEVSTAT_READ :
- DEVSTAT_WRITE);
-
if (bp->b_flags & B_ERROR)
bp->b_resid = bp->b_bcount;
+ devstat_end_transaction_buf(&cs->device_stats, bp);
biodone(bp);
}
OpenPOWER on IntegriCloud