svn commit: r328879 - stable/11/sys/vm

Konstantin Belousov kib at FreeBSD.org
Mon Feb 5 10:29:58 UTC 2018


Author: kib
Date: Mon Feb  5 10:29:57 2018
New Revision: 328879
URL: https://svnweb.freebsd.org/changeset/base/328879

Log:
  MFC r328773:
  On pageout, in vnode generic pager, for partially dirty page, only
  clear dirty bits for completely invalid blocks.
  
  PR:	225586

Modified:
  stable/11/sys/vm/vnode_pager.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/vnode_pager.c
==============================================================================
--- stable/11/sys/vm/vnode_pager.c	Mon Feb  5 09:25:53 2018	(r328878)
+++ stable/11/sys/vm/vnode_pager.c	Mon Feb  5 10:29:57 2018	(r328879)
@@ -1223,6 +1223,8 @@ vnode_pager_generic_putpages(struct vnode *vp, vm_page
 			maxsize = object->un_pager.vnp.vnp_size - poffset;
 			ncount = btoc(maxsize);
 			if ((pgoff = (int)maxsize & PAGE_MASK) != 0) {
+				pgoff = roundup2(pgoff, DEV_BSIZE);
+
 				/*
 				 * If the object is locked and the following
 				 * conditions hold, then the page's dirty


More information about the svn-src-stable mailing list