Add a devstat_start_transaction_bio() to match the
devstat_end_transaction_bio() we already have. For now it just calls devstat_start_transaction(), but that will change shortly.
This commit is contained in:
parent
e31c9eb10b
commit
9fa85de269
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user