From 7ff358347cb5b5d880a52e2f74938caffab396e5 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 6 May 2000 06:59:08 +0000 Subject: Remove devstat_end_transaction_buf() everybody uses devstat_end_transaction_bio() now. --- sys/kern/subr_devstat.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 5035641..fe14002 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -32,7 +32,6 @@ #include #include #include -#include #include #include @@ -230,23 +229,6 @@ devstat_end_transaction(struct devstat *ds, u_int32_t bytes, } 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) { devstat_trans_flags flg; -- cgit v1.1