diff options
author | Qu Wenruo | 2020-06-24 18:02:48 +0200 |
---|---|---|
committer | Tom Rini | 2020-09-07 20:57:27 -0400 |
commit | 565a4147d17ae3b05531b8c3081ca5fa5bcd72fd (patch) | |
tree | 4c79026f0d221a7ccd98145c335c8d4d03127949 /fs/btrfs/btrfs.c | |
parent | 3b4b40c0d6c02c9a4adc684cf125f628651caf4c (diff) |
fs: btrfs: Add more checksum algorithms
This mostly crossports crypto/hash.[ch] from btrfs-progs.
The differences are:
- No blake2 support
No blake2 related library in U-Boot yet.
- Use uboot xxhash/sha256 directly
No need to implement the code as U-Boot has already provided the
interface.
This adds the support for the following csums:
- SHA256
- XXHASH
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Diffstat (limited to 'fs/btrfs/btrfs.c')
-rw-r--r-- | fs/btrfs/btrfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c index 9f2888bab3b..d5a87c175c5 100644 --- a/fs/btrfs/btrfs.c +++ b/fs/btrfs/btrfs.c @@ -5,11 +5,12 @@ * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz */ -#include "btrfs.h" #include <config.h> #include <malloc.h> #include <uuid.h> #include <linux/time.h> +#include "btrfs.h" +#include "crypto/hash.h" struct btrfs_info btrfs_info; |