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)
commit31114726b69364f3bf8dd945c600ceed4c430f4f
treef386d4dbbec757e40e1aa0b69a49bb286514b3ae
parentc7f0207b613033c56b1217032d2f6326d0c69217
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