diff options
author | phk <phk@FreeBSD.org> | 2000-05-06 06:59:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-05-06 06:59:08 +0000 |
commit | 7ff358347cb5b5d880a52e2f74938caffab396e5 (patch) | |
tree | 134e021d4c7e3c8fc95d375d559974d02c37bf4b /sys | |
parent | 75b9bb7e77bb4631ac1377779d0d45d3a0826f84 (diff) | |
download | FreeBSD-src-7ff358347cb5b5d880a52e2f74938caffab396e5.zip FreeBSD-src-7ff358347cb5b5d880a52e2f74938caffab396e5.tar.gz |
Remove devstat_end_transaction_buf() everybody uses
devstat_end_transaction_bio() now.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_devstat.c | 18 | ||||
-rw-r--r-- | sys/sys/devicestat.h | 1 |
2 files changed, 0 insertions, 19 deletions
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 <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; diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h index d06f993..6cf5418 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 |