OSDN Git Service

ext4 crypto: Use a larger on-stack file name buffer
authorSultan Alsawaf <sultan@kerneltoast.com>
Wed, 31 Jul 2019 04:15:10 +0000 (21:15 -0700)
committer0ranko0P <ranko0p@outlook.com>
Sat, 7 Dec 2019 10:22:18 +0000 (18:22 +0800)
commit12fd7705a9125aab7f6d0a83ac4b622549c9c741
tree3d9cdf9c0fe850784676be0d983e226377336fed
parentbed6055f68f4ed2fd615522295fc5bdbaec9f930
ext4 crypto: Use a larger on-stack file name buffer

32 bytes for the on-stack file name buffer is rather small and doesn't
fit many file names, causing dynamic allocation to be used more often
than necessary instead. Increasing the on-stack buffer to 4 KiB is safe
and helps this function avoid dynamic memory allocations far more
frequently.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
fs/ext4/crypto_fname.c