]> git.baikalelectronics.ru Git - uboot.git/commit
fs: btrfs: Add more checksum algorithms
authorQu Wenruo <wqu@suse.com>
Wed, 24 Jun 2020 16:02:48 +0000 (18:02 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 Sep 2020 00:57:27 +0000 (20:57 -0400)
commit5bdb7723cb052af59add79765d1f5c83a95e90c5
tree4c79026f0d221a7ccd98145c335c8d4d03127949
parent9eea45d2138a7b1965e93a80e51416799dccc5d9
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>
fs/btrfs/Makefile
fs/btrfs/btrfs.c
fs/btrfs/btrfs.h
fs/btrfs/crypto/hash.c [new file with mode: 0644]
fs/btrfs/crypto/hash.h [new file with mode: 0644]
fs/btrfs/dir-item.c
fs/btrfs/disk-io.c [new file with mode: 0644]
fs/btrfs/disk-io.h [new file with mode: 0644]
fs/btrfs/hash.c [deleted file]
fs/btrfs/super.c