Correct accuracy of the barrier writes accounting.

Discussed with:	mckusick
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2018-12-02 12:53:39 +00:00
parent f788dba5bb
commit 200bf72793

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;