bcachefs: Prepare checksums for more advanced algorithms
authorjpsollie <janpieter.sollie@edpnet.be>
Thu, 17 Jun 2021 09:29:59 +0000 (11:29 +0200)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:07 +0000 (17:09 -0400)
commit80ff5d18ee975f201c8913be066ebedf887003f9
treeebf6ec71d0ac0b391fb5771b0334efff99583283
parenta515d0a50c6e8bb9b8ce58d6e396b4c5eeea6905
bcachefs: Prepare checksums for more advanced algorithms

Perform abstraction of hash calculation for advanced checksum algorithms.
Algorithms like xxhash do not store their state as a u64 int.

Signed-off-by: jpsollie <janpieter.sollie@edpnet.be>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/checksum.c