svn commit: r342620 - stable/12/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Sun Dec 30 15:17:01 UTC 2018
Author: kib
Date: Sun Dec 30 15:17:00 2018
New Revision: 342620
URL: https://svnweb.freebsd.org/changeset/base/342620
Log:
MFC r342380:
Properly test for vmio buffer in bnoreuselist().
Modified:
stable/12/sys/kern/vfs_subr.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/vfs_subr.c
==============================================================================
--- stable/12/sys/kern/vfs_subr.c Sun Dec 30 09:35:47 2018 (r342619)
+++ stable/12/sys/kern/vfs_subr.c Sun Dec 30 15:17:00 2018 (r342620)
@@ -1840,7 +1840,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