fscrypt: remove fscrypt_operations::max_namelen
authorEric Biggers <ebiggers@google.com>
Thu, 9 Sep 2021 18:45:13 +0000 (11:45 -0700)
committerEric Biggers <ebiggers@google.com>
Tue, 21 Sep 2021 02:32:33 +0000 (19:32 -0700)
commit4373b3dc922038e8924f648506f6556f2afa7e77
tree315ddf83133cc6b0bacd418a349710fef86bf089
parente4e737bb5c170df6135a127739a9e6148ee3da82
fscrypt: remove fscrypt_operations::max_namelen

The max_namelen field is unnecessary, as it is set to 255 (NAME_MAX) on
all filesystems that support fscrypt (or plan to support fscrypt).  For
simplicity, just use NAME_MAX directly instead.

Link: https://lore.kernel.org/r/20210909184513.139281-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/fname.c
fs/ext4/super.c
fs/f2fs/super.c
fs/ubifs/crypto.c
include/linux/fscrypt.h