ZFS: Don't iterate over null objsets

Reading them is harmless but useless as they are empty by definition

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Vladimir Serbinenko committed 2023-09-18 02:44:02 +02:00
1 parent 96446ce14e
commit 444089eec6
1 file changed
+3
+3
View File
@@ -4157,6 +4157,9 @@ iterate_zap_fs (const char *name, grub_uint64_t val,
grub_err_t err; grub_err_t err;
struct grub_dirhook_info info; struct grub_dirhook_info info;
if (name[0] == 0 && val == 0)
return 0;
dnode_end_t mdn; dnode_end_t mdn;
err = dnode_get (&(ctx->data->mos), val, 0, &mdn, ctx->data); err = dnode_get (&(ctx->data->mos), val, 0, &mdn, ctx->data);
if (err) if (err)