svn commit: r232834 - head/sys/ufs/ffs
Konstantin Belousov
kib at FreeBSD.org
Sun Mar 11 20:18:15 UTC 2012
Author: kib
Date: Sun Mar 11 20:18:14 2012
New Revision: 232834
URL: http://svn.freebsd.org/changeset/base/232834
Log:
In ffs_syncvnode(), pass boolean false as second argument of ffs_update().
Synchronous inode block update is not needed for MNT_LAZY callers (syncer),
and since waitfor values are not zero, code did unneccessary synchronous
update.
Submitted by: bde
Reviewed by: mckusick
Tested by: pho
MFC after: 2 weeks
Modified:
head/sys/ufs/ffs/ffs_vnops.c
Modified: head/sys/ufs/ffs/ffs_vnops.c
==============================================================================
--- head/sys/ufs/ffs/ffs_vnops.c Sun Mar 11 20:15:12 2012 (r232833)
+++ head/sys/ufs/ffs/ffs_vnops.c Sun Mar 11 20:18:14 2012 (r232834)
@@ -305,7 +305,7 @@ next:
if (noupdate)
return (0);
else
- return (ffs_update(vp, waitfor));
+ return (ffs_update(vp, 0));
}
/* Drain IO to see if we're done. */
bufobj_wwait(bo, 0, 0);
More information about the svn-src-head
mailing list