Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2018 15:20:35 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r342622 - stable/11/sys/kern
Message-ID:  <201812301520.wBUFKZq6033343@repo.freebsd.org>

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



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