summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-09-18 21:30:27 +0000
committerphk <phk@FreeBSD.org>1999-09-18 21:30:27 +0000
commita41657c540b5754aa0245f0ec705f900dfccc4a9 (patch)
treec5daa64e6f693863e10c3e27794090d8a5d8e1e7 /sys/contrib/dev
parent924236547e11eeafee3db1e24987bb763df57937 (diff)
downloadFreeBSD-src-a41657c540b5754aa0245f0ec705f900dfccc4a9.zip
FreeBSD-src-a41657c540b5754aa0245f0ec705f900dfccc4a9.tar.gz
Use devstat_end_transaction_buf() rather than Use devstat_end_transaction()
Diffstat (limited to 'sys/contrib/dev')
-rw-r--r--sys/contrib/dev/fla/fla.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c
index 83b0edc..b8998d6 100644
--- a/sys/contrib/dev/fla/fla.c
+++ b/sys/contrib/dev/fla/fla.c
@@ -197,7 +197,6 @@ flastrategy(struct buf *bp)
int s;
struct fla_s *sc;
enum doc2k_work what;
- devstat_trans_flags dop;
if (fla_debug > 1)
printf("flastrategy(%p) %s %lx, %d, %ld, %p)\n",
@@ -230,11 +229,11 @@ flastrategy(struct buf *bp)
unit = dkunit(bp->b_dev);
if (bp->b_flags & B_FREEBUF)
- what = DOC2K_ERASE, dop = DEVSTAT_NO_DATA;
+ what = DOC2K_ERASE;
else if (bp->b_flags & B_READ)
- what = DOC2K_READ, dop = DEVSTAT_READ;
+ what = DOC2K_READ;
else
- what = DOC2K_WRITE, dop = DEVSTAT_WRITE;
+ what = DOC2K_WRITE;
LEAVE();
@@ -254,10 +253,8 @@ flastrategy(struct buf *bp)
} else {
bp->b_resid = 0;
}
+ devstat_end_transaction_buf(&sc->stats, bp);
biodone(bp);
- devstat_end_transaction(&sc->stats, bp->b_bcount,
- DEVSTAT_TAG_NONE, dop);
-
s = splbio();
}
OpenPOWER on IntegriCloud