diff options
author | Matthew Macy <[email protected]> | 2020-02-26 16:09:17 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-26 16:09:17 -0800 |
commit | 28caa74b196553aaafda6d0a881668735d627d82 (patch) | |
tree | 45c69d5ef7d50efd5b45c11037946dd8225dedaf /module/zfs/zcp_get.c | |
parent | 647ff8e975d2087ade05d862eb19a589ab155126 (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_get.c')
-rw-r--r-- | module/zfs/zcp_get.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/zcp_get.c b/module/zfs/zcp_get.c index 44c4e82c2..311875583 100644 --- a/module/zfs/zcp_get.c +++ b/module/zfs/zcp_get.c @@ -207,7 +207,7 @@ get_dsl_dir_prop(dsl_dataset_t *ds, zfs_prop_t zfs_prop, break; default: mutex_exit(&dd->dd_lock); - return (ENOENT); + return (SET_ERROR(ENOENT)); } mutex_exit(&dd->dd_lock); return (0); @@ -669,7 +669,7 @@ zcp_get_userquota_prop(lua_State *state, dsl_pool_t *dp, if ((value == 0) && ((type == ZFS_PROP_USERQUOTA) || (type == ZFS_PROP_GROUPQUOTA))) - error = ENOENT; + error = SET_ERROR(ENOENT); if (error != 0) { return (zcp_handle_error(state, dataset_name, prop_name, error)); |