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

on a pagequeue.

Reported by:	pho
This commit is contained in:
Jeff Roberson 2019-12-15 06:26:47 +00:00
parent 5ca70a4673
commit d29f674f2e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355771

View File

@ -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);