From a41657c540b5754aa0245f0ec705f900dfccc4a9 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 18 Sep 1999 21:30:27 +0000 Subject: Use devstat_end_transaction_buf() rather than Use devstat_end_transaction() --- sys/contrib/dev/fla/fla.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sys/contrib/dev/fla/fla.c') 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(); } -- cgit v1.1