Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2012 00:44:54 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r233439 - stable/9/sys/ufs/ffs
Message-ID:  <201203250044.q2P0is1O055864@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Mar 25 00:44:54 2012
New Revision: 233439
URL: http://svn.freebsd.org/changeset/base/233439

Log:
  MFC r232834:
  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.

Modified:
  stable/9/sys/ufs/ffs/ffs_vnops.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/ufs/ffs/ffs_vnops.c
==============================================================================
--- stable/9/sys/ufs/ffs/ffs_vnops.c	Sun Mar 25 00:02:37 2012	(r233438)
+++ stable/9/sys/ufs/ffs/ffs_vnops.c	Sun Mar 25 00:44:54 2012	(r233439)
@@ -300,7 +300,7 @@ next:
 	}
 	if (waitfor != MNT_WAIT) {
 		BO_UNLOCK(bo);
-		return (ffs_update(vp, waitfor));
+		return (ffs_update(vp, 0));
 	}
 	/* Drain IO to see if we're done. */
 	bufobj_wwait(bo, 0, 0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203250044.q2P0is1O055864>