ext4: Only advertise encrypted_casefold when encryption and unicode are enabled
authorDaniel Rosenberg <drosen@google.com>
Thu, 3 Jun 2021 09:48:49 +0000 (09:48 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 6 Jun 2021 14:10:23 +0000 (10:10 -0400)
commite71f99f2dfb45f4e7203a0732e85f71ef1d04dab
tree67d2887a4830009321f3c5febd3e73db11c6ac9f
parent63e7f1289389c8dff3c766f01ac1cc1c874b2ba5
ext4: Only advertise encrypted_casefold when encryption and unicode are enabled

Encrypted casefolding is only supported when both encryption and
casefolding are both enabled in the config.

Fixes: 471fbbea7ff7 ("ext4: handle casefolding with encryption")
Cc: stable@vger.kernel.org # 5.13+
Signed-off-by: Daniel Rosenberg <drosen@google.com>
Link: https://lore.kernel.org/r/20210603094849.314342-1-drosen@google.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/sysfs.c