fscrypt: use WARN_ON_ONCE instead of WARN_ON
authorEric Biggers <ebiggers@google.com>
Mon, 20 Mar 2023 23:39:43 +0000 (16:39 -0700)
committerEric Biggers <ebiggers@google.com>
Tue, 28 Mar 2023 04:15:50 +0000 (21:15 -0700)
commit41b2ad80fdcaafd42fce173cb95847d0cd8614c2
tree633980d206be0ae2ce7215bd46207b0a5a1cf02e
parent6f2656eab290f0dd437cd4b2ec956c3519172d3b
fscrypt: use WARN_ON_ONCE instead of WARN_ON

As per Linus's suggestion
(https://lore.kernel.org/r/CAHk-=whefxRGyNGzCzG6BVeM=5vnvgb-XhSeFJVxJyAxAF8XRA@mail.gmail.com),
use WARN_ON_ONCE instead of WARN_ON.  This barely adds any extra
overhead, and it makes it so that if any of these ever becomes reachable
(they shouldn't, but that's the point), the logs can't be flooded.

Link: https://lore.kernel.org/r/20230320233943.73600-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/bio.c
fs/crypto/fname.c
fs/crypto/fscrypt_private.h
fs/crypto/hkdf.c
fs/crypto/hooks.c
fs/crypto/keyring.c
fs/crypto/keysetup.c
fs/crypto/policy.c