Skip to content

Commit

Permalink
llumos 6334 - Cannot unlink files when over quota
Browse files Browse the repository at this point in the history
6334 Cannot unlink files when over quota
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Dan McDonald <danmcd@omniti.com>

References:
  https://www.illumos.org/issues/6334
  illumos/illumos-gate@6575bca

Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
  • Loading branch information
sklinkert authored and behlendorf committed Jan 26, 2016
1 parent a966c56 commit 1a04bab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions module/zfs/zfs_vnops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,12 +1628,9 @@ zfs_remove(struct inode *dip, char *name, cred_t *cr)
dmu_tx_hold_zap(tx, zsb->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) {
Expand Down

0 comments on commit 1a04bab

Please sign in to comment.