diff options
author | David Woodhouse <dwmw2@infradead.org> | 2009-04-19 08:02:41 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-06-10 11:29:53 -0400 |
commit | 163e783e6a8b1e8bcb4c9084d438091386b589df (patch) | |
tree | dd7fbe662b7c81ba8c548b309fed4376f07ea495 /fs/btrfs/extent-tree.c | |
parent | 6cbff00f4632c8060b06bfc9585805217f11e12e (diff) |
Btrfs: remove crc32c.h and use libcrc32c directly.
There's no need to preserve this abstraction; it used to let us use
hardware crc32c support directly, but libcrc32c is already doing that for us
through the crypto API -- so we're already using the Intel crc32c
acceleration where appropriate.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 7 |
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 | } |