Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2019 23:49:37 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355471 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201912062349.xB6NnbgR095038@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Dec  6 23:49:37 2019
New Revision: 355471
URL: https://svnweb.freebsd.org/changeset/base/355471

Log:
  Fix an inverted condition introduced in r353539.
  
  This would have most likely resulted in read errors causing page leaks.
  
  Submitted by:	jeff

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Fri Dec  6 23:39:38 2019	(r355470)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Fri Dec  6 23:49:37 2019	(r355471)
@@ -550,7 +550,7 @@ mappedread_sf(vnode_t *vp, int nbytes, uio_t *uio)
 				vm_page_unlock(pp);
 			}
 			vm_page_sunbusy(pp);
-			if (error != 0 && !vm_page_wired(pp) == 0 &&
+			if (error != 0 && !vm_page_wired(pp) &&
 			    pp->valid == 0 && vm_page_tryxbusy(pp))
 				vm_page_free(pp);
 		} else {



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