aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zcp.c
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-02-26 16:09:17 -0800
committerGitHub <[email protected]>2020-02-26 16:09:17 -0800
commit28caa74b196553aaafda6d0a881668735d627d82 (patch)
tree45c69d5ef7d50efd5b45c11037946dd8225dedaf /module/zfs/zcp.c
parent647ff8e975d2087ade05d862eb19a589ab155126 (diff)
Refactor dnode dirty context from dbuf_dirty
* Add dedicated donde_set_dirtyctx routine. * Add empty dirty record on destroy assertion. * Make much more extensive use of the SET_ERROR macro. Reviewed-by: Will Andrews <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Matthew Ahrens <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9924
Diffstat (limited to 'module/zfs/zcp.c')
-rw-r--r--module/zfs/zcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/zcp.c b/module/zfs/zcp.c
index e8cf96d49..305d09239 100644
--- a/module/zfs/zcp.c
+++ b/module/zfs/zcp.c
@@ -396,7 +396,7 @@ zcp_lua_to_nvlist_impl(lua_State *state, int index, nvlist_t *nvl,
case LUA_TTABLE: {
nvlist_t *value_nvl = zcp_table_to_nvlist(state, index, depth);
if (value_nvl == NULL)
- return (EINVAL);
+ return (SET_ERROR(EINVAL));
fnvlist_add_nvlist(nvl, key, value_nvl);
fnvlist_free(value_nvl);
@@ -406,7 +406,7 @@ zcp_lua_to_nvlist_impl(lua_State *state, int index, nvlist_t *nvl,
(void) lua_pushfstring(state,
"Invalid value type '%s' for key '%s'",
lua_typename(state, lua_type(state, index)), key);
- return (EINVAL);
+ return (SET_ERROR(EINVAL));
}
return (0);
@@ -585,7 +585,7 @@ zcp_nvpair_value_to_lua(lua_State *state, nvpair_t *pair,
"Unhandled nvpair type %d for key '%s'",
nvpair_type(pair), nvpair_name(pair));
}
- return (EINVAL);
+ return (SET_ERROR(EINVAL));
}
}
return (err);