Correct accuracy of the barrier writes accounting.

Discussed with:	mckusick
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
kib 2018-12-02 12:53:39 +00:00
parent 4dd1500004
commit 966a7e1173

View File

@ -2231,7 +2231,7 @@ bufwrite(struct buf *bp)
}
if (bp->b_flags & B_BARRIER)
barrierwrites++;
atomic_add_long(&barrierwrites, 1);
oldflags = bp->b_flags;