Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136803405
D8641.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D8641.id.diff
View Options
Index: head/lib/libc/sys/mmap.2
===================================================================
--- head/lib/libc/sys/mmap.2
+++ head/lib/libc/sys/mmap.2
@@ -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 @@
(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
Index: head/sys/kern/vfs_subr.c
===================================================================
--- head/sys/kern/vfs_subr.c
+++ head/sys/kern/vfs_subr.c
@@ -3002,7 +3002,7 @@
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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 20, 4:14 PM (10 m, 26 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25734181
Default Alt Text
D8641.id.diff (1 KB)
Attached To
Mode
D8641: Launder VPO_NOSYNC pages upon vnode deactivation.
Attached
Detach File
Event Timeline
Log In to Comment