diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-07-18 13:56:06 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-07-20 10:39:26 -0700 |
| commit | f5bd17a8b558173f54d39b465998b07c05de50ca (patch) | |
| tree | a27804f4162b63671226cfc088cf6cf38799f061 /drivers/media/platform/amd/git@git.tavy.me:linux.git | |
| parent | b3aa5b308ce562df94bda927c4c29c552357d1ab (diff) | |
fscrypt: Replace some variable-size memsets with fixed-size
For zeroing IVs and raw keys, remove the misguided optimization of
zeroing the actual size used (typically 16 and 64 bytes respectively)
instead of the max size (32 and 64 bytes respectively). Using a
compile-time constant size allows the compiler to specialize the memset
for that size (typically by inlining a few 'mov' instructions), which
is more important than zeroing a few extra bytes with these small sizes.
Link: https://patch.msgid.link/20260718205606.50713-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'drivers/media/platform/amd/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
