Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2016 10:41:34 +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-10@freebsd.org
Subject:   svn commit: r300600 - stable/10/sys/ufs/ffs
Message-ID:  <201605241041.u4OAfYar040812@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Tue May 24 10:41:34 2016
New Revision: 300600
URL: https://svnweb.freebsd.org/changeset/base/300600

Log:
  MFC r300083:
  If IO_SYNC was passed to ffs_truncate(), request synchronous inode
  update from the final ffs_update().

Modified:
  stable/10/sys/ufs/ffs/ffs_inode.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ufs/ffs/ffs_inode.c
==============================================================================
--- stable/10/sys/ufs/ffs/ffs_inode.c	Tue May 24 10:39:55 2016	(r300599)
+++ stable/10/sys/ufs/ffs/ffs_inode.c	Tue May 24 10:41:34 2016	(r300600)
@@ -562,7 +562,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)));
 }
 
 /*



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