]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
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)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Aug 2022 23:58:56 +0000 (07:58 +0800)
commit21ace2e627610edfab9625fc1da8660ea72cf389
treed5f9c0bda422d687e016f9e4951339bf13fec7be
parente1701c002cac8269278e9760f4bba14440303c1e
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.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/file.c