android_kernel_oneplus_msm8998/fs/crypto
Eric Biggers 56446c9142 fscrypt: make fscrypt_operations.max_namelen an integer
Now ->max_namelen() is only called to limit the filename length when
adding NUL padding, and only for real filenames -- not symlink targets.
It also didn't give the correct length for symlink targets anyway since
it forgot to subtract 'sizeof(struct fscrypt_symlink_data)'.

Thus, change ->max_namelen from a function to a simple 'unsigned int'
that gives the filesystem's maximum filename length.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2018-06-28 12:19:55 -07:00
..
bio.c fscrypt: allow synchronous bio decryption 2018-04-19 21:59:42 -07:00
crypto.c fscrypt: remove stale comment from fscrypt_d_revalidate() 2018-06-28 12:18:52 -07:00
fname.c fscrypt: make fscrypt_operations.max_namelen an integer 2018-06-28 12:19:55 -07:00
fscrypt_private.h fscrypt: clean up after fscrypt_prepare_lookup() conversions 2018-06-28 12:18:52 -07:00
hooks.c fscrypt: fix build with pre-4.6 gcc versions 2018-04-08 03:05:28 -07:00
Kconfig f2fs: backport from (4c1fad64 - Merge tag 'for-f2fs-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs) 2016-10-17 16:38:44 -07:00
keyinfo.c fscrypt: don't clear flags on crypto transform 2018-06-28 12:18:52 -07:00
Makefile fscrypt: new helper function - fscrypt_file_open() 2018-01-04 18:20:23 -08:00
policy.c fscrypt: switch from ->is_encrypted() to IS_ENCRYPTED() 2018-01-04 18:20:19 -08:00