diff usr/src/uts/common/fs/zfs/dsl_userhold.c @ 14060:aeb4e8fef072

3829 fix for 3740 changed behavior of zfs destroy/hold/release ioctl Reviewed by: Matt Amdur <matt.amdur@delphix.com> Reviewed by: Christopher Siden <christopher.siden@delphix.com> Approved by: Richard Lowe <richlowe@richlowe.net>
author Matthew Ahrens <mahrens@delphix.com>
date Thu, 20 Jun 2013 14:43:17 -0800
parents 1a272fe1337b
children
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/dsl_userhold.c	Wed Apr 24 18:37:28 2013 +0000
+++ b/usr/src/uts/common/fs/zfs/dsl_userhold.c	Thu Jun 20 14:43:17 2013 -0800
@@ -126,10 +126,6 @@
 		}
 	}
 
-	/* Return ENOENT if no holds would be created. */
-	if (nvlist_empty(dduha->dduha_chkholds))
-		return (SET_ERROR(ENOENT));
-
 	return (0);
 }
 
@@ -468,10 +464,6 @@
 		}
 	}
 
-	/* Return ENOENT if none of the holds existed. */
-	if (nvlist_empty(ddura->ddura_chkholds))
-		return (SET_ERROR(ENOENT));
-
 	return (0);
 }