Author: markj
Date: Fri Feb  3 01:16:54 2017
New Revision: 313125
URL: https://svnweb.freebsd.org/changeset/base/313125

Log:
  MFC r309200:
  Launder VPO_NOSYNC pages upon vnode deactivation.

Modified:
  stable/11/lib/libc/sys/mmap.2
  stable/11/sys/kern/vfs_subr.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libc/sys/mmap.2
==============================================================================
--- stable/11/lib/libc/sys/mmap.2       Fri Feb  3 01:15:31 2017        
(r313124)
+++ stable/11/lib/libc/sys/mmap.2       Fri Feb  3 01:16:54 2017        
(r313125)
@@ -28,7 +28,7 @@
 .\"    @(#)mmap.2      8.4 (Berkeley) 5/11/95
 .\" $FreeBSD$
 .\"
-.Dd February 18, 2015
+.Dd November 25, 2016
 .Dt MMAP 2
 .Os
 .Sh NAME
@@ -189,6 +189,8 @@ this option any VM pages you dirty may b
 (every 30-60 seconds usually) which can create performance problems if you
 do not need that to occur (such as when you are using shared file-backed
 mmap regions for IPC purposes).
+Dirty data will be flushed automatically when all mappings of an object are
+removed and all descriptors referencing the object are closed.
 Note that VM/file system coherency is
 maintained whether you use
 .Dv MAP_NOSYNC

Modified: stable/11/sys/kern/vfs_subr.c
==============================================================================
--- stable/11/sys/kern/vfs_subr.c       Fri Feb  3 01:15:31 2017        
(r313124)
+++ stable/11/sys/kern/vfs_subr.c       Fri Feb  3 01:16:54 2017        
(r313125)
@@ -2948,7 +2948,7 @@ vinactive(struct vnode *vp, struct threa
        obj = vp->v_object;
        if (obj != NULL && (obj->flags & OBJ_MIGHTBEDIRTY) != 0) {
                VM_OBJECT_WLOCK(obj);
-               vm_object_page_clean(obj, 0, 0, OBJPC_NOSYNC);
+               vm_object_page_clean(obj, 0, 0, 0);
                VM_OBJECT_WUNLOCK(obj);
        }
        VOP_INACTIVE(vp, td);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to