]> git.ipfire.org Git - thirdparty/u-boot.git/commit - fs/btrfs/disk-io.h
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)
commit565a4147d17ae3b05531b8c3081ca5fa5bcd72fd
tree4c79026f0d221a7ccd98145c335c8d4d03127949
parent3b4b40c0d6c02c9a4adc684cf125f628651caf4c
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