return crc32c(crc, data, len);
        case BCH_CSUM_CRC64_NONZERO:
        case BCH_CSUM_CRC64:
-               return bch2_crc64_update(crc, data, len);
+               return crc64_be(crc, data, len);
        default:
                BUG();
        }
 
 struct bch_csum bch2_checksum_merge(unsigned, struct bch_csum,
                                    struct bch_csum, 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)
 #define BCH_NONCE_JOURNAL      cpu_to_le32(3 << 28)
 
                ctx->crc32c = crc32c(~0, &info->crc_key, sizeof(info->crc_key));
                break;
        case BCH_STR_HASH_CRC64:
-               ctx->crc64 = bch2_crc64_update(~0, &info->crc_key, sizeof(info->crc_key));
+               ctx->crc64 = crc64_be(~0, &info->crc_key, sizeof(info->crc_key));
                break;
        case BCH_STR_HASH_SIPHASH:
                SipHash24_Init(&ctx->siphash, &info->siphash_key);
                ctx->crc32c = crc32c(ctx->crc32c, data, len);
                break;
        case BCH_STR_HASH_CRC64:
-               ctx->crc64 = bch2_crc64_update(ctx->crc64, data, len);
+               ctx->crc64 = crc64_be(ctx->crc64, data, len);
                break;
        case BCH_STR_HASH_SIPHASH:
                SipHash24_Update(&ctx->siphash, data, len);