mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Remove devstat_end_transaction_buf() everybody uses
devstat_end_transaction_bio() now.
This commit is contained in:
parent
d76f1a8cca
commit
ad7ba3d455
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60072
@ -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>
|
||||
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user