Author: kib
Date: Tue May 17 21:30:58 2016
New Revision: 300083
URL: https://svnweb.freebsd.org/changeset/base/300083
Log:
If IO_SYNC was passed to ffs_truncate(), request synchronous inode
update from the final ffs_update().
Noted by: bde
MFC after: 1 week
Modified:
head/sys/ufs/ffs/ffs_inode.c
Modified: head/sys/ufs/ffs/ffs_inode.c
==============================================================================
--- head/sys/ufs/ffs/ffs_inode.c Tue May 17 21:28:28 2016
(r300082)
+++ head/sys/ufs/ffs/ffs_inode.c Tue May 17 21:30:58 2016
(r300083)
@@ -610,7 +610,7 @@ extclean:
softdep_journal_freeblocks(ip, cred, length, IO_EXT);
else
softdep_setup_freeblocks(ip, length, IO_EXT);
- return (ffs_update(vp, !DOINGASYNC(vp)));
+ return (ffs_update(vp, (flags & IO_SYNC) != 0 || !DOINGASYNC(vp)));
}
/*
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"