ceph: plumb in decryption during reads
authorJeff Layton <jlayton@kernel.org>
Thu, 25 Aug 2022 13:31:22 +0000 (09:31 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 24 Aug 2023 09:24:36 +0000 (11:24 +0200)
commitf0fe1e54cfcf5209a88d720671dc6637774b8757
tree44a5ead54a476a888e69ff5ff0a50464f7bc19b6
parentd55207717ded95c8f2760a30e93319fa313186e6
ceph: plumb in decryption during reads

Force the use of sparse reads when the inode is encrypted, and add the
appropriate code to decrypt the extent map after receiving.

Note that the crypto block may be smaller than a page, but the reverse
cannot be true.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-and-tested-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/file.c