Skip to content

Commit db707ad

Browse files
sklinkertbehlendorf
authored andcommitted
OpenZFS 6940 - Cannot unlink directories when over quota
From user perspective, I would expect that ZFS is always able to remove files and directories even when the quota is exceeded. Authored by: Simon Klinkert <simon.klinkert@gmail.com> Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Ported-by: kernelOfTruth kerneloftruth@gmail.com Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> OpenZFS-issue: https://www.illumos.org/issues/6940 OpenZFS-issue: https://www.illumos.org/issues/6334 OpenZFS-commit: illumos/illumos-gate@9918916 Closes #5044
1 parent 755065f commit db707ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/zfs/zfs_vnops.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,7 @@ zfs_rmdir(struct inode *dip, char *name, struct inode *cwd, cred_t *cr,
20032003
dmu_tx_hold_zap(tx, zsb->z_unlinkedobj, FALSE, NULL);
20042004
zfs_sa_upgrade_txholds(tx, zp);
20052005
zfs_sa_upgrade_txholds(tx, dzp);
2006+
dmu_tx_mark_netfree(tx);
20062007
error = dmu_tx_assign(tx, waited ? TXG_WAITED : TXG_NOWAIT);
20072008
if (error) {
20082009
rw_exit(&zp->z_parent_lock);

0 commit comments

Comments
 (0)