]> git.proxmox.com Git - mirror_zfs.git/commit
Eliminate gratuitous bzeroing in dbuf_stats_hash_table_data
authorMatthew Macy <mmacy@freebsd.org>
Wed, 30 Sep 2020 20:24:38 +0000 (13:24 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Sep 2020 20:24:38 +0000 (13:24 -0700)
commit1cb8202b1b0b5810ab9eaecd19fc84f8ffb874d9
tree29184cab763286fe1c9a1f28abea100781b3017e
parent8a171ccd9258c9528af413562b5bd6b994cf9c2e
Eliminate gratuitous bzeroing in dbuf_stats_hash_table_data

`dbuf_stats_hash_table_data` can take much longer than it needs to
by repeatedly bzeroing its buffer when in fact the buffer only needs
to be NULL terminated.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #10993
module/zfs/dbuf_stats.c