Author: mm
Date: Sat Jun 12 11:18:29 2010
New Revision: 209093
URL: http://svn.freebsd.org/changeset/base/209093

Log:
  Fix unable to remove a file over NFS after hitting refquota limit
  
  OpenSolaris onnv-revision:    8890:8c2bd5f17bf2
  
  Obtained from:        OpenSolaris (Bug ID 6798878)
  Approved by:  pjd, delphij (mentor)
  MFC after:    3 days

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c        Sat Jun 
12 07:02:43 2010        (r209092)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_tx.c        Sat Jun 
12 11:18:29 2010        (r209093)
@@ -582,9 +582,9 @@ dmu_tx_hold_zap(dmu_tx_t *tx, uint64_t o
                        txh->txh_space_tooverwrite += SPA_MAXBLOCKSIZE;
                } else {
                        txh->txh_space_towrite += SPA_MAXBLOCKSIZE;
-                       txh->txh_space_tounref +=
-                           BP_GET_ASIZE(dn->dn_phys->dn_blkptr);
                }
+               if (dn->dn_phys->dn_blkptr[0].blk_birth)
+                       txh->txh_space_tounref += SPA_MAXBLOCKSIZE;
                return;
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to