aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 3355d7ea8308..33a65f2c8a37 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -23,7 +23,6 @@
23#include <linux/rcupdate.h> 23#include <linux/rcupdate.h>
24#include "compat.h" 24#include "compat.h"
25#include "hash.h" 25#include "hash.h"
26#include "crc32c.h"
27#include "ctree.h" 26#include "ctree.h"
28#include "disk-io.h" 27#include "disk-io.h"
29#include "print-tree.h" 28#include "print-tree.h"
@@ -625,11 +624,11 @@ static u64 hash_extent_data_ref(u64 root_objectid, u64 owner, u64 offset)
625 __le64 lenum; 624 __le64 lenum;
626 625
627 lenum = cpu_to_le64(root_objectid); 626 lenum = cpu_to_le64(root_objectid);
628 high_crc = btrfs_crc32c(high_crc, &lenum, sizeof(lenum)); 627 high_crc = crc32c(high_crc, &lenum, sizeof(lenum));
629 lenum = cpu_to_le64(owner); 628 lenum = cpu_to_le64(owner);
630 low_crc = btrfs_crc32c(low_crc, &lenum, sizeof(lenum)); 629 low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
631 lenum = cpu_to_le64(offset); 630 lenum = cpu_to_le64(offset);
632 low_crc = btrfs_crc32c(low_crc, &lenum, sizeof(lenum)); 631 low_crc = crc32c(low_crc, &lenum, sizeof(lenum));
633 632
634 return ((u64)high_crc << 31) ^ (u64)low_crc; 633 return ((u64)high_crc << 31) ^ (u64)low_crc;
635} 634}