]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: make error code in __ext4fs_dirhash() consistent.
authorJulian Sun <sunjunchao@bytedance.com>
Fri, 10 Oct 2025 09:52:57 +0000 (17:52 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Nov 2025 15:32:33 +0000 (10:32 -0500)
commitce3236a3c7d8e048e0bcc7f445f12f911dd9dc7d
tree5984a4fa30f389675736ee6a2d2ec12e297a9bb3
parent6146a0f1dfae5d37442a9ddcba012add260bceb0
ext4: make error code in __ext4fs_dirhash() consistent.

Currently __ext4fs_dirhash() returns -1 (-EPERM) if fscrypt doesn't
have encryption key, which may confuse users. Make the error code here
consistent with existing error code.

Signed-off-by: Julian Sun <sunjunchao@bytedance.com>
Message-ID: <20251010095257.3008275-1-sunjunchao@bytedance.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/hash.c