diff options
| author | Eric Biggers <[email protected]> | 2018-01-12 04:30:08 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2018-01-12 04:30:08 +0000 |
| commit | b9db0b4a68d373897119d1e0a3beebe1c1a23936 (patch) | |
| tree | 3cb57195d294dae3eb19378428cabc75e78621e3 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | fscrypt: define fscrypt_fname_alloc_buffer() to be for presented names (diff) | |
| download | kernel-b9db0b4a68d373897119d1e0a3beebe1c1a23936.tar.gz kernel-b9db0b4a68d373897119d1e0a3beebe1c1a23936.zip | |
fscrypt: fix up fscrypt_fname_encrypted_size() for internal use
Filesystems don't need fscrypt_fname_encrypted_size() anymore, so
unexport it and move it to fscrypt_private.h.
We also never calculate the encrypted size of a filename without having
the fscrypt_info present since it is needed to know the amount of
NUL-padding which is determined by the encryption policy, and also we
will always truncate the NUL-padding to the maximum filename length.
Therefore, also make fscrypt_fname_encrypted_size() assume that the
fscrypt_info is present, and make it truncate the returned length to the
specified max_len.
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
