diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-15 10:33:32 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-03-15 10:33:32 +0000 |
| commit | 9fa85de269ef3efdd5272b82f0926c6ee9b796ef (patch) | |
| tree | c6eade0d749b188b9e2e1f142da7a4ed5f62b7f8 | |
| parent | e31c9eb10baa0db68b4d82639bb98d9ef79e4c2c (diff) | |
Notes
| -rw-r--r-- | sys/kern/subr_devstat.c | 7 | ||||
| -rw-r--r-- | sys/sys/devicestat.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index eab9a4f63efd..01322e020c8f 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -201,6 +201,13 @@ devstat_start_transaction(struct devstat *ds) ds->busy_count++; } +void +devstat_start_transaction_bio(struct devstat *ds, struct bio *bp) +{ + + devstat_start_transaction(ds); +} + /* * Record the ending of a transaction, and incrment the various counters. */ diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h index 3655db44cd61..872f3f89add5 100644 --- a/sys/sys/devicestat.h +++ b/sys/sys/devicestat.h @@ -225,6 +225,7 @@ struct devstat *devstat_new_entry(const char *dev_name, void devstat_remove_entry(struct devstat *ds); void devstat_start_transaction(struct devstat *ds); +void devstat_start_transaction_bio(struct devstat *ds, struct bio *bp); void devstat_end_transaction(struct devstat *ds, u_int32_t bytes, devstat_tag_type tag_type, devstat_trans_flags flags); |
