]> 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>
Mon, 25 Jan 2021 18:47:30 +0000 (13:47 -0500)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 15:50:01 +0000 (11:50 -0400)
commit8d7976e2c5d4426474ea29009233b8fc4275102e
tree0bca9963e02e86f78b347557f6dc616f80708315
parent8f3582c018b79cf4dc04f650af762aea1b4cba18
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