]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/checksum.h
Update bcachefs sources to ef60854e99 bcachefs: More allocator startup improvements
[bcachefs-tools-debian] / libbcachefs / checksum.h
index 031b36f3f36ec94fd483c47b3b2e892e380e49bb..fb72c6a4e3f408b262a3c3f2b8789900f70037df 100644 (file)
@@ -5,9 +5,13 @@
 #include "extents_types.h"
 #include "super-io.h"
 
+#include <linux/crc64.h>
 #include <crypto/chacha20.h>
 
-u64 bch2_crc64_update(u64, const void *, size_t);
+static inline u64 bch2_crc64_update(u64 crc, const void *p, size_t len)
+{
+       return crc64_be(crc, p, len);
+}
 
 #define BCH_NONCE_EXTENT       cpu_to_le32(1 << 28)
 #define BCH_NONCE_BTREE                cpu_to_le32(2 << 28)