[PATCH v2 07/67] fscache: Implement a hash function
Linus Torvalds
torvalds at linux-foundation.org
Thu Dec 9 09:12:58 PST 2021
On Thu, Dec 9, 2021 at 8:54 AM David Howells <dhowells at redhat.com> wrote:
>
> Implement a function to generate hashes. It needs to be stable over time
> and endianness-independent as the hashes will appear on disk in future
> patches.
I'm not actually seeing this being endianness-independent.
Is the input just regular 32-bit data in native word order? Because
then it's not endianness-independent, it's purely that there *is* no
endianness to the data at all and it is purely native data.
So the code may be correct, but the explanation is confusing. There is
absolutely nothing here that is about endianness.
Linus
More information about the linux-afs
mailing list