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/zap_leaf.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/zap_leaf.c')
-rw-r--r-- | module/zfs/zap_leaf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zap_leaf.c b/module/zfs/zap_leaf.c index b421dd503..aa6c298c3 100644 --- a/module/zfs/zap_leaf.c +++ b/module/zfs/zap_leaf.c @@ -467,7 +467,7 @@ zap_leaf_lookup_closest(zap_leaf_t *l, } } - return (bestcd == -1U ? ENOENT : 0); + return (bestcd == -1U ? SET_ERROR(ENOENT) : 0); } int |