]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
fscache: Implement a hash function
authorDavid Howells <dhowells@redhat.com>
Wed, 20 Oct 2021 14:45:28 +0000 (15:45 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 14:28:51 +0000 (14:28 +0000)
commit3cc5f373f9ba32135710a887ffc9abbb2257d603
treedf084450d1582290446c6a43b89d76fe58a6aba1
parentc510f62288a6c7e72a5f4cf3fee320b0e51c4e13
fscache: Implement a hash function

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.  It can assume that its input is a multiple of four bytes in size
and alignment.

This is borrowed from the VFS and simplified.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
fs/fscache/internal.h
fs/fscache/main.c