fscrypt: move body of fscrypt_prepare_setattr() out-of-line
authorEric Biggers <ebiggers@google.com>
Thu, 3 Dec 2020 02:20:38 +0000 (18:20 -0800)
committerEric Biggers <ebiggers@google.com>
Thu, 3 Dec 2020 02:25:01 +0000 (18:25 -0800)
commit7622350e5eda2cc57a72c6b27f1405d8b4f94670
tree0ad66c519bd9ed52795579288c6d0af79245792c
parentec0caa974cd092549ab282deb8ec7ea73b36eba0
fscrypt: move body of fscrypt_prepare_setattr() out-of-line

In preparation for reducing the visibility of fscrypt_require_key() by
moving it to fscrypt_private.h, move the call to it from
fscrypt_prepare_setattr() to an out-of-line function.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20201203022041.230976-7-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/hooks.c
include/linux/fscrypt.h