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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to