aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/dsl_dir.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/dsl_dir.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/dsl_dir.c')
-rw-r--r--module/zfs/dsl_dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/zfs/dsl_dir.c b/module/zfs/dsl_dir.c
index 909b67630..172ebc72c 100644
--- a/module/zfs/dsl_dir.c
+++ b/module/zfs/dsl_dir.c
@@ -1058,7 +1058,7 @@ dsl_dir_get_filesystem_count(dsl_dir_t *dd, uint64_t *count)
return (zap_lookup(os, dd->dd_object, DD_FIELD_FILESYSTEM_COUNT,
sizeof (*count), 1, count));
} else {
- return (ENOENT);
+ return (SET_ERROR(ENOENT));
}
}
@@ -1070,7 +1070,7 @@ dsl_dir_get_snapshot_count(dsl_dir_t *dd, uint64_t *count)
return (zap_lookup(os, dd->dd_object, DD_FIELD_SNAPSHOT_COUNT,
sizeof (*count), 1, count));
} else {
- return (ENOENT);
+ return (SET_ERROR(ENOENT));
}
}
@@ -1315,7 +1315,7 @@ top_of_function:
if (avail < quota) {
quota = avail;
- retval = ENOSPC;
+ retval = SET_ERROR(ENOSPC);
}
}