|
@@ -23,7 +23,6 @@
|
|
#include <linux/rcupdate.h>
|
|
#include <linux/rcupdate.h>
|
|
#include "compat.h"
|
|
#include "compat.h"
|
|
#include "hash.h"
|
|
#include "hash.h"
|
|
-#include "crc32c.h"
|
|
|
|
#include "ctree.h"
|
|
#include "ctree.h"
|
|
#include "disk-io.h"
|
|
#include "disk-io.h"
|
|
#include "print-tree.h"
|
|
#include "print-tree.h"
|
|
@@ -625,11 +624,11 @@ static u64 hash_extent_data_ref(u64 root_objectid, u64 owner, u64 offset)
|
|
__le64 lenum;
|
|
__le64 lenum;
|
|
|
|
|
|
lenum = cpu_to_le64(root_objectid);
|
|
lenum = cpu_to_le64(root_objectid);
|
|
- high_crc = btrfs_crc32c(high_crc, &lenum, sizeof(lenum));
|
|
|
|
|
|
+ high_crc = crc32c(high_crc, &lenum, sizeof(lenum));
|
|
lenum = cpu_to_le64(owner);
|
|
lenum = cpu_to_le64(owner);
|
|
- low_crc = btrfs_crc32c(low_crc, &lenum, sizeof(lenum));
|
|
|
|
|
|
+ low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
|
|
lenum = cpu_to_le64(offset);
|
|
lenum = cpu_to_le64(offset);
|
|
- low_crc = btrfs_crc32c(low_crc, &lenum, sizeof(lenum));
|
|
|
|
|
|
+ low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
|
|
|
|
|
|
return ((u64)high_crc << 31) ^ (u64)low_crc;
|
|
return ((u64)high_crc << 31) ^ (u64)low_crc;
|
|
}
|
|
}
|