Commit d29f674f authored by Jeff Roberson's avatar Jeff Roberson
Browse files

Fix a mistake in r355765. We need to activate the page if it is not yet

on a pagequeue.

Reported by:	pho
parent 5ca70a46
......@@ -209,7 +209,9 @@ uiomove_object_page(vm_object_t obj, size_t len, struct uio *uio)
error = uiomove_fromphys(&m, offset, tlen, uio);
if (uio->uio_rw == UIO_WRITE && error == 0)
vm_page_set_dirty(m);
vm_page_aflag_set(m, PGA_REFERENCED);
vm_page_lock(m);
vm_page_activate(m);
vm_page_unlock(m);
vm_page_sunbusy(m);
return (error);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment