aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/ddt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/ddt.h')
-rw-r--r--include/sys/ddt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/ddt.h b/include/sys/ddt.h
index fc40a495a..fb1445d8d 100644
--- a/include/sys/ddt.h
+++ b/include/sys/ddt.h
@@ -95,7 +95,7 @@ typedef struct ddt_key {
#define DDT_KEY_WORDS (sizeof (ddt_key_t) / sizeof (uint64_t))
#define DDE_GET_NDVAS(dde) (DDK_GET_CRYPT(&dde->dde_key) \
- ? SPA_DVAS_PER_BP : SPA_DVAS_PER_BP - 1)
+ ? SPA_DVAS_PER_BP - 1 : SPA_DVAS_PER_BP)
typedef struct ddt_phys {
dva_t ddp_dva[SPA_DVAS_PER_BP];