ceph: add encryption support to writepage and writepages
authorJeff Layton <jlayton@kernel.org>
Thu, 25 Aug 2022 13:31:25 +0000 (09:31 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 24 Aug 2023 09:24:36 +0000 (11:24 +0200)
commitd55207717ded95c8f2760a30e93319fa313186e6
tree53f13dc3d3a34346edf4e01a0eff646421a27f5a
parent33a5f1709a44efa7253b84832fe4a49fccf4924b
ceph: add encryption support to writepage and writepages

Allow writepage to issue encrypted writes. Extend out the requested size
and offset to cover complete blocks, and then encrypt and write them to
the OSDs.

Add the appropriate machinery to write back dirty data with encryption.

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/crypto.h