summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-08-17 13:23:03 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2016-08-17 13:23:03 -0800
commitb0f08fc1e30daafb274181234dae3408fb2eb69b (patch)
tree63893387dc2b136342922d0d904f3e2d1a7e3ebd /util.h
parentdda0923eebd3d36a06ed4976cd4ab98d7cdec679 (diff)
Encryption support
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/util.h b/util.h
index 2af277a..101b5c8 100644
--- a/util.h
+++ b/util.h
@@ -74,7 +74,7 @@ u64 bch_checksum(unsigned, const void *, size_t);
#define __csum_set(i, u64s, type) \
({ \
- const void *start = ((const void *) (i)) + sizeof(u64); \
+ const void *start = ((const void *) (i)) + sizeof(i->csum); \
const void *end = __bkey_idx(i, u64s); \
\
bch_checksum(type, start, end - start); \
@@ -93,4 +93,6 @@ struct bcache_handle {
struct bcache_handle bcache_fs_open(const char *);
+void memzero_explicit(void *, size_t);
+
#endif /* _UTIL_H */