1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Simplify code, no need to test the flag before clearing it.

Submitted by:	ed
MFC after:	12 days
This commit is contained in:
Konstantin Belousov 2015-06-29 13:06:24 +00:00
parent b24de3ac40
commit 521987c3e5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284927

View File

@ -2072,8 +2072,7 @@ ffs_bufwrite(struct buf *bp)
if (bp->b_vflags & BV_BKGRDINPROG)
panic("bufwrite: still writing");
}
if ((bp->b_vflags & BV_BKGRDERR) != 0)
bp->b_vflags &= ~BV_BKGRDERR;
bp->b_vflags &= ~BV_BKGRDERR;
BO_UNLOCK(bp->b_bufobj);
/*