Message ID | 1dce5730bff1479ef9fe6a52c9dd0dfc31576b91.1672547582.git.sweettea-kernel@dorminy.me (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | fscrypt: add per-extent encryption keys | expand |
diff --git a/fs/crypto/inline_crypt.c b/fs/crypto/inline_crypt.c index 808c8712ebe7..43fb0d933ff4 100644 --- a/fs/crypto/inline_crypt.c +++ b/fs/crypto/inline_crypt.c @@ -113,6 +113,10 @@ int fscrypt_select_encryption_impl(struct fscrypt_info *ci) if (!(sb->s_flags & SB_INLINECRYPT)) return 0; + /* The filesystem must not use per-extent infos */ + if (fscrypt_uses_extent_encryption(inode)) + return 0; + /* * When a page contains multiple logically contiguous filesystem blocks, * some filesystem code only calls fscrypt_mergeable_bio() for the first
I haven't worked out how to do inline-suitable fscrypt_infos for extent-based encryption, so disable the combo for now. Signed-off-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me> --- fs/crypto/inline_crypt.c | 4 ++++ 1 file changed, 4 insertions(+)