|
@@ -24,12 +24,12 @@
|
|
|
#include <linux/xattr.h>
|
|
|
#include <linux/posix_acl_xattr.h>
|
|
|
#include <linux/radix-tree.h>
|
|
|
-#include <linux/crc32c.h>
|
|
|
#include <linux/vmalloc.h>
|
|
|
#include <linux/string.h>
|
|
|
|
|
|
#include "send.h"
|
|
|
#include "backref.h"
|
|
|
+#include "hash.h"
|
|
|
#include "locking.h"
|
|
|
#include "disk-io.h"
|
|
|
#include "btrfs_inode.h"
|
|
@@ -620,7 +620,7 @@ static int send_cmd(struct send_ctx *sctx)
|
|
|
hdr->len = cpu_to_le32(sctx->send_size - sizeof(*hdr));
|
|
|
hdr->crc = 0;
|
|
|
|
|
|
- crc = crc32c(0, (unsigned char *)sctx->send_buf, sctx->send_size);
|
|
|
+ crc = btrfs_crc32c(0, (unsigned char *)sctx->send_buf, sctx->send_size);
|
|
|
hdr->crc = cpu_to_le32(crc);
|
|
|
|
|
|
ret = write_buf(sctx->send_filp, sctx->send_buf, sctx->send_size,
|