]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: move halfmd4 into hash.c directly
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 2 Feb 2017 16:52:14 +0000 (11:52 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 2 Feb 2017 16:52:14 +0000 (11:52 -0500)
commitd4d3671d5d86651cbc52577c4f59bfc180dbdd9d
treed6c819cd48f8f88beeb6bc2ac248f5a79b0d7ed6
parentec1fca7ca31a3acc28773a6814bdd2b9bff5eb14
ext4: move halfmd4 into hash.c directly

The "half md4" transform should not be used by any new code. And
fortunately, it's only used now by ext4. Since ext4 supports several
hashing methods, at some point it might be desirable to move to
something like SipHash. As an intermediate step, remove half md4 from
cryptohash.h and lib, and make it just a local function in ext4's
hash.c. There's precedent for doing this; the other function ext can use
for its hashes -- TEA -- is also implemented in the same place. Also, by
being a local function, this might allow gcc to perform some additional
optimizations.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/hash.c
include/linux/cryptohash.h
lib/Makefile
lib/halfmd4.c [deleted file]