Date: Wed, 29 Dec 2010 12:53:53 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/vm vm_object.c vm_page.c Message-ID: <201012291254.oBTCsHUW004235@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2010-12-29 12:53:53 UTC FreeBSD src repository Modified files: sys/vm vm_object.c vm_page.c Log: SVN rev 216799 on 2010-12-29 12:53:53Z by kib Move the increment of vm object generation count into vm_object_set_writeable_dirty(). Fix an issue where restart of the scan in vm_object_page_clean() did not removed write permissions for newly added pages or, if the mapping for some already scanned page changed to writeable due to fault. Merge the two loops in vm_object_page_clean(), doing the remove of write permission and cleaning in the same loop. The restart of the loop then correctly downgrade writeable mappings. Fix an issue where a second caller to msync() might actually return before the first caller had actually completed flushing the pages. Clear the OBJ_MIGHTBEDIRTY flag after the cleaning loop, not before. Calls to pmap_is_modified() are not needed after pmap_remove_write() there. Proposed, reviewed and tested by: alc MFC after: 1 week Revision Changes Path 1.434 +34 -31 src/sys/vm/vm_object.c 1.430 +0 -1 src/sys/vm/vm_page.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012291254.oBTCsHUW004235>