]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: fix error message when rejecting the default hash
authorGabriel Krisman Bertazi <krisman@suse.de>
Thu, 8 Jan 2026 15:04:09 +0000 (12:04 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Jan 2026 14:19:26 +0000 (15:19 +0100)
commitd4da9edac3385ba7454edab0b8e182efed0c65ad
treed81ad1a6ec1d298dc38f6e5f6fbbc66f4ab1cd94
parentca208416a9bdf14c85901ee7c50552ab33c8086b
ext4: fix error message when rejecting the default hash

commit a2187431c395cdfbf144e3536f25468c64fc7cfa upstream.

Commit 985b67cd8639 ("ext4: filesystems without casefold feature cannot
be mounted with siphash") properly rejects volumes where
s_def_hash_version is set to DX_HASH_SIPHASH, but the check and the
error message should not look into casefold setup - a filesystem should
never have DX_HASH_SIPHASH as the default hash.  Fix it and, since we
are there, move the check to ext4_hash_info_init.

Fixes:985b67cd8639 ("ext4: filesystems without casefold feature cannot
be mounted with siphash")

Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Link: https://patch.msgid.link/87jzg1en6j.fsf_-_@mailhost.krisman.be
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ext4.h
fs/ext4/super.c