diff options
author | Rob Norris <robn@despairlabs.com> | 2024-02-19 10:19:32 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2024-02-26 20:24:22 +0000 |
commit | 8f2f6cd2ac688916adb2caf979daf95365ccb48f (patch) | |
tree | 71c525cc60f39af6ccfdb57101527eda7813fda6 | |
parent | c00c085bfb187f0c14bd276658a9c897d3919d07 (diff) | |
download | src-vendor/openzfs/master.tar.gz src-vendor/openzfs/master.zip |
ddt: reduce DDT_NAMELENvendor/openzfs/master
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
-rw-r--r-- | include/sys/ddt_impl.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/sys/ddt_impl.h b/include/sys/ddt_impl.h index d6693658885b..52b927b7519d 100644 --- a/include/sys/ddt_impl.h +++ b/include/sys/ddt_impl.h @@ -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 * 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); |