Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2015 13:06:25 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284927 - head/sys/ufs/ffs
Message-ID:  <201506291306.t5TD6P8k019417@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506291306.t5TD6P8k019417>