From 1a077756e8ba946a55f999fa1cb5f0e7dcb9aa81 Mon Sep 17 00:00:00 2001 From: Matthew Ahrens Date: Thu, 20 Jun 2013 14:43:17 -0800 Subject: Illumos #3829 3829 fix for 3740 changed behavior of zfs destroy/hold/release ioctl Reviewed by: Matt Amdur Reviewed by: Christopher Siden Approved by: Richard Lowe References: https://www.illumos.org/issues/3829 illumos/illumos-gate@bb6e70758d0c30c09f148026d6e686e21cfc8d18 Ported-by: Richard Yao Signed-off-by: Brian Behlendorf Issue #1775 --- module/zfs/dsl_userhold.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'module/zfs/dsl_userhold.c') diff --git a/module/zfs/dsl_userhold.c b/module/zfs/dsl_userhold.c index f33292787..db9540d13 100644 --- a/module/zfs/dsl_userhold.c +++ b/module/zfs/dsl_userhold.c @@ -127,10 +127,6 @@ dsl_dataset_user_hold_check(void *arg, dmu_tx_t *tx) } } - /* Return ENOENT if no holds would be created. */ - if (nvlist_empty(dduha->dduha_chkholds)) - return (SET_ERROR(ENOENT)); - return (0); } @@ -472,10 +468,6 @@ dsl_dataset_user_release_check(void *arg, dmu_tx_t *tx) } } - /* Return ENOENT if none of the holds existed. */ - if (nvlist_empty(ddura->ddura_chkholds)) - return (SET_ERROR(ENOENT)); - return (0); } -- cgit v1.2.3