svn commit: r342622 - stable/11/sys/kern

Konstantin Belousov kib at FreeBSD.org
Sun Dec 30 15:20:36 UTC 2018


Author: kib
Date: Sun Dec 30 15:20:35 2018
New Revision: 342622
URL: https://svnweb.freebsd.org/changeset/base/342622

Log:
  MFC r342380:
  Properly test for vmio buffer in bnoreuselist().

Modified:
  stable/11/sys/kern/vfs_subr.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/vfs_subr.c
==============================================================================
--- stable/11/sys/kern/vfs_subr.c	Sun Dec 30 15:17:57 2018	(r342621)
+++ stable/11/sys/kern/vfs_subr.c	Sun Dec 30 15:20:35 2018	(r342622)
@@ -1773,7 +1773,7 @@ again:
 		 * reused.  Dirty buffers will have the hint applied once
 		 * they've been written.
 		 */
-		if (bp->b_vp->v_object != NULL)
+		if ((bp->b_flags & B_VMIO) != 0)
 			bp->b_flags |= B_NOREUSE;
 		brelse(bp);
 		BO_RLOCK(bo);


More information about the svn-src-stable mailing list