]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: move fscrypt_prepare_symlink() out-of-line
authorEric Biggers <ebiggers@google.com>
Thu, 17 Sep 2020 04:11:34 +0000 (21:11 -0700)
committerEric Biggers <ebiggers@google.com>
Tue, 22 Sep 2020 13:48:47 +0000 (06:48 -0700)
commit8cef7992091a6f9026373ebec2067adc42154cfb
treef386d4dbbec757e40e1aa0b69a49bb286514b3ae
parent77e8b730cf7b614e1a421ce6ab452df979ed8762
fscrypt: move fscrypt_prepare_symlink() out-of-line

In preparation for moving the logic for "get the encryption policy
inherited by new files in this directory" to a single place, make
fscrypt_prepare_symlink() a regular function rather than an inline
function that wraps __fscrypt_prepare_symlink().

This way, the new function fscrypt_policy_to_inherit() won't need to be
exported to filesystems.

Acked-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20200917041136.178600-12-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/hooks.c
include/linux/fscrypt.h