Avoid extra snprintf() in dsl_deadlist_merge().
commite613e4bbe397ed4eea08502cc8694bc990ab5ebe
authorAlexander Motin <mav@FreeBSD.org>
Fri, 14 Jul 2023 23:11:46 +0000 (14 19:11 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 20 Jul 2023 15:58:29 +0000 (20 08:58 -0700)
treef0f73896a47247011e64a5f765ce1ede81e11f34
parentb4e630b00c996a0b11f34e51488869cf3ab15d5e
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

(cherry picked from commit fdba8cbb796cb089c3d6eefa833f5176b0474c29)
module/zfs/dsl_deadlist.c