[Midnightbsd-cvs] src [8378] trunk/sys/kern/vfs_subr.c: clarity
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 18 15:09:12 EDT 2016
Revision: 8378
http://svnweb.midnightbsd.org/src/?rev=8378
Author: laffer1
Date: 2016-09-18 15:09:12 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
clarity
Modified Paths:
--------------
trunk/sys/kern/vfs_subr.c
Modified: trunk/sys/kern/vfs_subr.c
===================================================================
--- trunk/sys/kern/vfs_subr.c 2016-09-18 19:08:55 UTC (rev 8377)
+++ trunk/sys/kern/vfs_subr.c 2016-09-18 19:09:12 UTC (rev 8378)
@@ -2547,6 +2547,9 @@
* Before moving off the active list, we must be sure that any
* modified pages are on the vnode's dirty list since these will
* no longer be checked once the vnode is on the inactive list.
+ * Because the vnode vm object keeps a hold reference on the vnode
+ * if there is at least one resident non-cached page, the vnode
+ * cannot leave the active list without the page cleanup done.
*/
obj = vp->v_object;
if (obj != NULL && (obj->flags & OBJ_MIGHTBEDIRTY) != 0) {
More information about the Midnightbsd-cvs
mailing list