diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-03-20 10:44:49 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-03-20 10:44:49 +0000 |
| commit | 21144e3bf1f416a758f6546bfabfa8e4e8cba507 (patch) | |
| tree | c87da548b12fd12c48f1e5c89d087ddfa088ee78 /sys/kern/subr_devstat.c | |
| parent | 44bdcfa638d9ca31180090798a88116220f7f625 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_devstat.c')
| -rw-r--r-- | sys/kern/subr_devstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index b04662b196a0..7ebc257c3a95 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -233,9 +233,9 @@ devstat_end_transaction_buf(struct devstat *ds, struct buf *bp) { devstat_trans_flags flg; - if (bp->b_flags & B_FREEBUF) + if (bp->b_iocmd == BIO_DELETE) flg = DEVSTAT_FREE; - else if (bp->b_flags & B_READ) + else if (bp->b_iocmd == BIO_READ) flg = DEVSTAT_READ; else flg = DEVSTAT_WRITE; |
