svn commit: r284927 - head/sys/ufs/ffs

Konstantin Belousov kib at FreeBSD.org
Mon Jun 29 13:06:25 UTC 2015


Author: kib
Date: Mon Jun 29 13:06:24 2015
New Revision: 284927
URL: https://svnweb.freebsd.org/changeset/base/284927

Log:
  Simplify code, no need to test the flag before clearing it.
  
  Submitted by:	ed
  MFC after:	12 days

Modified:
  head/sys/ufs/ffs/ffs_vfsops.c

Modified: head/sys/ufs/ffs/ffs_vfsops.c
==============================================================================
--- head/sys/ufs/ffs/ffs_vfsops.c	Mon Jun 29 12:06:36 2015	(r284926)
+++ head/sys/ufs/ffs/ffs_vfsops.c	Mon Jun 29 13:06:24 2015	(r284927)
@@ -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);
 
 	/*


More information about the svn-src-head mailing list