]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ca64014062a07381ad2a7c4b334bff9b8571daa
tree315ddf83133cc6b0bacd418a349710fef86bf089
parentfa5d4460cfe6a4ab811a36d49fe44ccb61944b70
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