X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=232229f5e912d076cbbdc337ea43c4ccb032ef8a;hb=576802602c19ed3cfda98414ffc9b118c2675931;hp=8d4b7b9b5d4a36add7ddf972eccff44e196e0cd2;hpb=b44978e1499a61c3d91d93dbd7c45b6fc45b1778;p=ccan diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index 8d4b7b9b..232229f5 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -100,11 +100,11 @@ typedef uint64_t tdb_off_t; /* We steal this many upper bits, giving a maximum offset of 64 exabytes. */ #define TDB_OFF_UPPER_STEAL 8 #define TDB_OFF_UPPER_STEAL_EXTRA 7 -#define TDB_OFF_UPPER_STEAL_TRUNCBIT 1 -/* If this is set, hash is truncated (only 1 bit is valid). */ -#define TDB_OFF_HASH_TRUNCATED_BIT 56 -/* The bit number where we store next level of hash. */ +/* The bit number where we store extra hash bits. */ #define TDB_OFF_HASH_EXTRA_BIT 57 +#define TDB_OFF_UPPER_STEAL_SUBHASH_BIT 56 + +/* The bit number where we store the extra hash bits. */ /* Convenience mask to get actual offset. */ #define TDB_OFF_MASK \ (((1ULL << (64 - TDB_OFF_UPPER_STEAL)) - 1) - TDB_OFF_HASH_GROUP_MASK)