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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"