aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2018-01-12 04:30:08 +0000
committerTheodore Ts'o <[email protected]>2018-01-12 04:30:08 +0000
commit2cbadadcfdf0d8a538ce32ed12e18ef487773b07 (patch)
tree27e38f4642a9dd981e8cc7451b4f116cc678dea8 /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentfscrypt: calculate NUL-padding length in one place only (diff)
downloadkernel-2cbadadcfdf0d8a538ce32ed12e18ef487773b07.tar.gz
kernel-2cbadadcfdf0d8a538ce32ed12e18ef487773b07.zip
fscrypt: define fscrypt_fname_alloc_buffer() to be for presented names
Previously fscrypt_fname_alloc_buffer() was used to allocate buffers for both presented (decrypted or encoded) and encrypted filenames. That was confusing, because it had to allocate the worst-case size for either, e.g. including NUL-padding even when it was meaningless. But now that fscrypt_setup_filename() no longer calls it, it is only used in the ->get_link() and ->readdir() paths, which specifically want a buffer for presented filenames. Therefore, switch the behavior over to allocating the buffer for presented filenames only. Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions