Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140833473
D12411.id33225.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
D12411.id33225.diff
View Options
Index: head/sys/kern/vfs_subr.c
===================================================================
--- head/sys/kern/vfs_subr.c
+++ head/sys/kern/vfs_subr.c
@@ -3054,8 +3054,8 @@
* point that VOP_INACTIVE() is called, there could still be
* pending I/O and dirty pages in the object.
*/
- obj = vp->v_object;
- if (obj != NULL && (obj->flags & OBJ_MIGHTBEDIRTY) != 0) {
+ if ((obj = vp->v_object) != NULL && (vp->v_vflag & VV_NOSYNC) == 0 &&
+ (obj->flags & OBJ_MIGHTBEDIRTY) != 0) {
VM_OBJECT_WLOCK(obj);
vm_object_page_clean(obj, 0, 0, 0);
VM_OBJECT_WUNLOCK(obj);
Index: head/sys/vm/vm_object.c
===================================================================
--- head/sys/vm/vm_object.c
+++ head/sys/vm/vm_object.c
@@ -1083,8 +1083,8 @@
* I/O.
*/
if (object->type == OBJT_VNODE &&
- (object->flags & OBJ_MIGHTBEDIRTY) != 0) {
- vp = object->handle;
+ (object->flags & OBJ_MIGHTBEDIRTY) != 0 &&
+ ((vp = object->handle)->v_vflag & VV_NOSYNC) == 0) {
VM_OBJECT_WUNLOCK(object);
(void) vn_start_write(vp, &mp, V_WAIT);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 29, 3:03 PM (15 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27362328
Default Alt Text
D12411.id33225.diff (1 KB)
Attached To
Mode
D12411: For unlinked files, do not msync(2) or sync on inactivation.
Attached
Detach File
Event Timeline
Log In to Comment