ceph: align data in pages in ceph_sync_write
authorJeff Layton <jlayton@kernel.org>
Thu, 25 Aug 2022 13:31:20 +0000 (09:31 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 24 Aug 2023 09:24:36 +0000 (11:24 +0200)
commitb294fa295ff47a1fdf4db5e8c9275cc7af328c5e
tree515278e4edc4a8217dd93536fbe1952e4d635c1d
parent8cff8f5374c7974ab9b9726c5b7c50f10466047e
ceph: align data in pages in ceph_sync_write

Encrypted files will need to be dealt with in block-sized chunks and
once we do that, the way that ceph_sync_write aligns the data in the
bounce buffer won't be acceptable.

Change it to align the data the same way it would be aligned in the
pagecache.

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/file.c