fscrypt: log when starting to use inline encryption
authorEric Biggers <ebiggers@google.com>
Thu, 14 Apr 2022 05:34:15 +0000 (22:34 -0700)
committerEric Biggers <ebiggers@google.com>
Thu, 14 Apr 2022 05:35:25 +0000 (22:35 -0700)
commita7a5bc5fe8acc9381e38a34ef18f1115c5c22079
tree1c5079e222ecf12e15f3370671fa59ccb7272dfc
parent63cec1389e116ae0e2a15e612a5b49651e04be3f
fscrypt: log when starting to use inline encryption

When inline encryption is used, the usual message "fscrypt: AES-256-XTS
using implementation <impl>" doesn't appear in the kernel log.  Add a
similar message for the blk-crypto case that indicates that inline
encryption was used, and whether blk-crypto-fallback was used or not.
This can be useful for debugging performance problems.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Link: https://lore.kernel.org/r/20220414053415.158986-1-ebiggers@kernel.org
fs/crypto/fscrypt_private.h
fs/crypto/inline_crypt.c
fs/crypto/keysetup.c