ddt: remove struct names and forward declarations

Things get confused when there's more than one name for a thing.

Note that we don't do this for ddt_object_t, ddt_histogram_t and
ddt_stat_t because they're part of the public ZFS interface.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: iXsystems, Inc.
Closes #15887
This commit is contained in:
Rob Norris
2023-07-03 12:43:37 +10:00
committed by Brian Behlendorf
parent c8f694fe39
commit 3bad70040a
3 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ extern "C" {
/*
* Ops vector to access a specific DDT object type.
*/
typedef struct ddt_ops {
typedef struct {
char ddt_op_name[32];
int (*ddt_op_create)(objset_t *os, uint64_t *object, dmu_tx_t *tx,
boolean_t prehash);