Eric Biggers ec0caa974c fscrypt: introduce fscrypt_prepare_readdir()
The last remaining use of fscrypt_get_encryption_info() from filesystems
is for readdir (->iterate_shared()).  Every other call is now in
fs/crypto/ as part of some other higher-level operation.

We need to add a new argument to fscrypt_get_encryption_info() to
indicate whether the encryption policy is allowed to be unrecognized or
not.  Doing this is easier if we can work with high-level operations
rather than direct filesystem use of fscrypt_get_encryption_info().

So add a function fscrypt_prepare_readdir() which wraps the call to
fscrypt_get_encryption_info() for the readdir use case.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20201203022041.230976-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
2020-12-02 18:25:01 -08:00
..
2020-09-14 11:15:37 -07:00
2020-09-14 11:15:37 -07:00
2020-09-14 11:15:37 -07:00
2020-06-09 11:28:59 -07:00
2020-09-14 11:15:37 -07:00
2020-01-17 16:48:07 -08:00
2020-10-16 15:14:43 -07:00
2020-05-11 20:36:46 -07:00
2020-03-10 09:18:33 -07:00
2020-09-14 11:15:37 -07:00