svn commit: r324412 - stable/11/sys/vm
Alan Cox
alc at FreeBSD.org
Sun Oct 8 17:14:47 UTC 2017
Author: alc
Date: Sun Oct 8 17:14:45 2017
New Revision: 324412
URL: https://svnweb.freebsd.org/changeset/base/324412
Log:
MFC r324173
When an I/O error occurs on page out, there is no need to dirty the page,
because it is already dirty. Instead, assert that the page is dirty.
Modified:
stable/11/sys/vm/swap_pager.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/vm/swap_pager.c
==============================================================================
--- stable/11/sys/vm/swap_pager.c Sun Oct 8 16:54:42 2017 (r324411)
+++ stable/11/sys/vm/swap_pager.c Sun Oct 8 17:14:45 2017 (r324412)
@@ -1523,7 +1523,7 @@ swp_pager_async_iodone(struct buf *bp)
* so it doesn't clog the inactive list,
* then finish the I/O.
*/
- vm_page_dirty(m);
+ MPASS(m->dirty == VM_PAGE_BITS_ALL);
vm_page_lock(m);
vm_page_activate(m);
vm_page_unlock(m);
More information about the svn-src-all
mailing list