svn commit: r294803 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Alexander Motin mav at FreeBSD.org
Tue Jan 26 12:48:12 UTC 2016


Author: mav
Date: Tue Jan 26 12:48:10 2016
New Revision: 294803
URL: https://svnweb.freebsd.org/changeset/base/294803

Log:
  MFV r294802: 6334 Cannot unlink files when over quota
  
  Reviewed by: Matthew Ahrens <mahrens at delphix.com>
  Reviewed by: Toomas Soome <tsoome at me.com>
  Approved by: Dan McDonald <danmcd at omniti.com>
  Author: Simon Klinkert <simon.klinkert at gmail.com>
  
  illumos/illumos-gate at 6575bca01367958c7237253d88e5fa9ef0b1650a

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
Directory Properties:
  head/sys/cddl/contrib/opensolaris/   (props changed)

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Tue Jan 26 12:47:33 2016	(r294802)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c	Tue Jan 26 12:48:10 2016	(r294803)
@@ -2009,12 +2009,9 @@ top:
 	dmu_tx_hold_zap(tx, zfsvfs->z_unlinkedobj, FALSE, NULL);
 
 	/*
-	 * Mark this transaction as typically resulting in a net free of
-	 * space, unless object removal will be delayed indefinitely
-	 * (due to active holds on the vnode due to the file being open).
+	 * Mark this transaction as typically resulting in a net free of space
 	 */
-	if (may_delete_now)
-		dmu_tx_mark_netfree(tx);
+	dmu_tx_mark_netfree(tx);
 
 	error = dmu_tx_assign(tx, waited ? TXG_WAITED : TXG_NOWAIT);
 	if (error) {


More information about the svn-src-all mailing list