fscrypt: remove struct fscrypt_ctx
authorEric Biggers <ebiggers@google.com>
Wed, 9 Oct 2019 23:34:17 +0000 (16:34 -0700)
committerEric Biggers <ebiggers@google.com>
Mon, 21 Oct 2019 20:22:08 +0000 (13:22 -0700)
commit1565bdad59e97f31cfc7b065bc0fc77e9549e62d
treedc5189446da62dea74b6b3792c892b0e032ef51f
parent4006d799d93b159fd834c50999265b5c534a71d5
fscrypt: remove struct fscrypt_ctx

Now that ext4 and f2fs implement their own post-read workflow that
supports both fscrypt and fsverity, the fscrypt-only workflow based
around struct fscrypt_ctx is no longer used.  So remove the unused code.

This is based on a patch from Chandan Rajendra's "Consolidate FS read
I/O callbacks code" patchset, but rebased onto the latest kernel, folded
__fscrypt_decrypt_bio() into fscrypt_decrypt_bio(), cleaned up
fscrypt_initialize(), and updated the commit message.

Originally-from: Chandan Rajendra <chandan@linux.ibm.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/crypto/bio.c
fs/crypto/crypto.c
fs/crypto/fscrypt_private.h
include/linux/fscrypt.h