Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142461879
D30610.id90318.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
660 B
Referenced Files
None
Subscribers
None
D30610.id90318.diff
View Options
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -1122,11 +1122,11 @@
ioflag |= IO_NDELAY;
if (fp->f_flag & O_DIRECT)
ioflag |= IO_DIRECT;
- if (fp->f_flag & O_FSYNC) {
- mp = atomic_load_ptr(&vp->v_mount);
- if (mp != NULL && mp->mnt_flag & MNT_SYNCHRONOUS)
- ioflag |= IO_SYNC;
- }
+
+ mp = atomic_load_ptr(&vp->v_mount);
+ if ((fp->f_flag & O_FSYNC) || (mp != NULL && (mp->mnt_flag & MNT_SYNCHRONOUS)))
+ ioflag |= IO_SYNC;
+
/*
* For O_DSYNC we set both IO_SYNC and IO_DATASYNC, so that VOP_WRITE()
* implementations that don't understand IO_DATASYNC fall back to full
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 21, 5:11 AM (16 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27791368
Default Alt Text
D30610.id90318.diff (660 B)
Attached To
Mode
D30610: Revert vn_write behavior difference
Attached
Detach File
Event Timeline
Log In to Comment