From ad7ba3d45549d9a0ce9b80ef1a8a2296afd9b672 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 6 May 2000 06:59:08 +0000 Subject: [PATCH] Remove devstat_end_transaction_buf() everybody uses devstat_end_transaction_bio() now. --- sys/kern/subr_devstat.c | 18 ------------------ sys/sys/devicestat.h | 1 - 2 files changed, 19 deletions(-) diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 503564110ce3..fe14002aa0c0 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -32,7 +32,6 @@ #include #include #include -#include #include #include @@ -229,23 +228,6 @@ devstat_end_transaction(struct devstat *ds, u_int32_t bytes, ds->unit_number, ds->busy_count); } -void -devstat_end_transaction_buf(struct devstat *ds, struct buf *bp) -{ - devstat_trans_flags flg; - - if (bp->b_iocmd == BIO_DELETE) - flg = DEVSTAT_FREE; - else if (bp->b_iocmd == BIO_READ) - flg = DEVSTAT_READ; - else - flg = DEVSTAT_WRITE; - - devstat_end_transaction(ds, bp->b_bcount - bp->b_resid, - (bp->b_ioflags & BIO_ORDERED) ? - DEVSTAT_TAG_ORDERED : DEVSTAT_TAG_SIMPLE, flg); -} - void devstat_end_transaction_bio(struct devstat *ds, struct bio *bp) { diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h index d06f993e5e8a..6cf5418bc48d 100644 --- a/sys/sys/devicestat.h +++ b/sys/sys/devicestat.h @@ -218,7 +218,6 @@ void devstat_start_transaction(struct devstat *ds); void devstat_end_transaction(struct devstat *ds, u_int32_t bytes, devstat_tag_type tag_type, devstat_trans_flags flags); -void devstat_end_transaction_buf(struct devstat *ds, struct buf *); void devstat_end_transaction_bio(struct devstat *ds, struct bio *); #endif