Date: Tue, 24 May 2016 10:39:55 +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: r300599 - stable/10/sys/ufs/ufs Message-ID: <201605241039.u4OAdtfs038561@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue May 24 10:39:55 2016 New Revision: 300599 URL: https://svnweb.freebsd.org/changeset/base/300599 Log: MFC r300082: For async UFS mounts, shrink the directory asynchronously, at least do not pass IO_SYNC to ffs_truncate() unneccessary. Modified: stable/10/sys/ufs/ufs/ufs_lookup.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/ufs/ufs/ufs_lookup.c ============================================================================== --- stable/10/sys/ufs/ufs/ufs_lookup.c Tue May 24 10:36:33 2016 (r300598) +++ stable/10/sys/ufs/ufs/ufs_lookup.c Tue May 24 10:39:55 2016 (r300599) @@ -1131,7 +1131,7 @@ ufs_direnter(dvp, tvp, dirp, cnp, newdir if (tvp != NULL) VOP_UNLOCK(tvp, 0); error = UFS_TRUNCATE(dvp, (off_t)dp->i_endoff, - IO_NORMAL | IO_SYNC, cr); + IO_NORMAL | (DOINGASYNC(dvp) ? 0 : IO_SYNC), cr); if (error != 0) vprint("ufs_direnter: failed to truncate", dvp); #ifdef UFS_DIRHASH
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605241039.u4OAdtfs038561>