diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-05-06 06:59:08 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-05-06 06:59:08 +0000 |
| commit | ad7ba3d45549d9a0ce9b80ef1a8a2296afd9b672 (patch) | |
| tree | 6c4eb81ebe2b67d3ff3d337a67607d60f3a3cf92 /sys/kern/subr_devstat.c | |
| parent | d76f1a8cca46fbb7780dd79d26786ec9b29a1ad3 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_devstat.c')
| -rw-r--r-- | sys/kern/subr_devstat.c | 18 |
1 files changed, 0 insertions, 18 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 <sys/kernel.h> #include <sys/systm.h> #include <sys/bio.h> -#include <sys/buf.h> #include <sys/sysctl.h> #include <sys/devicestat.h> @@ -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; |
