-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 128712 b: refs/heads/master c: a5eb62e h: refs/heads/master v: v3
- Loading branch information
Miguel
authored and
Chris Mason
committed
Sep 25, 2008
1 parent
d7ece4d
commit 933d7b5
Showing
4 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 587f77043a1c86e2a7900ff2ce86bef3c1f4e075 | ||
refs/heads/master: a5eb62e345fc1818d0d8b6181463200a9e8dfe39 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <asm/byteorder.h> | ||
#include <linux/crc32c.h> | ||
#include <linux/version.h> | ||
|
||
/** | ||
* implementation of crc32c_le() changed in linux-2.6.23, | ||
* has of v0.13 btrfs-progs is using the latest version. | ||
* We must workaround older implementations of crc32c_le() | ||
* found on older kernel versions. | ||
*/ | ||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) | ||
#define btrfs_crc32c(seed, data, length) \ | ||
__cpu_to_le32( crc32c( __le32_to_cpu(seed), data, length) ) | ||
#else | ||
#define btrfs_crc32c(seed, data, length) \ | ||
crc32c(seed, data, length) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters