]> git.proxmox.com Git - mirror_zfs.git/commit
Avoid extra snprintf() in dsl_deadlist_merge().
authorAlexander Motin <mav@FreeBSD.org>
Fri, 14 Jul 2023 23:11:46 +0000 (19:11 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Jul 2023 23:11:46 +0000 (16:11 -0700)
commitfdba8cbb796cb089c3d6eefa833f5176b0474c29
tree1b8bdce2c9f48b3bc99bbb17ebefa4b4f16f677e
parent6db781d52ca0993af42e9ecb6741263167b991e0
Avoid extra snprintf() in dsl_deadlist_merge().

Since we are already iterating the ZAP, we have exact string key to
remove, we do not need to call zap_remove_int() with the int key we
just converted, we can call zap_remove() for the original string.

This should make no functional change, only a micro-optimization.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15056
module/zfs/dsl_deadlist.c