ddt: reduce DDT_NAMELEN

This is the buffer size passed to ddt_object_name(), to expand the
DMU_POOL_DDT format. That format inserts the table checksum, class and
type names, which as I write this are max 6, 9 and 3, respectively.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15908
This commit is contained in:
Rob Norris 2024-02-19 21:19:32 +11:00 committed by Brian Behlendorf
parent c00c085bfb
commit 8f2f6cd2ac
1 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,12 @@ extern void ddt_stat_update(ddt_t *ddt, ddt_entry_t *dde, uint64_t neg);
* outside of the DDT implementation proper, and if you do, consider moving * outside of the DDT implementation proper, and if you do, consider moving
* them up. * them up.
*/ */
#define DDT_NAMELEN 110
/*
* Enough room to expand DMU_POOL_DDT format for all possible DDT
* checksum/class/type combinations.
*/
#define DDT_NAMELEN 32
extern uint64_t ddt_phys_total_refcnt(const ddt_entry_t *dde); extern uint64_t ddt_phys_total_refcnt(const ddt_entry_t *dde);