ceph: add object version support for sync read
authorXiubo Li <xiubli@redhat.com>
Thu, 25 Aug 2022 13:31:12 +0000 (09:31 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 24 Aug 2023 09:24:35 +0000 (11:24 +0200)
commitd4d518871574ebbd53f054c16c085caa0a77b83d
tree20f9064939079eae4f26e0fad97fa924ee341472
parent4e8c4c235578b4d44bd6676df3a01dce98d0f7dd
ceph: add object version support for sync read

Turn the guts of ceph_sync_read into a new helper that takes an inode
and an offset instead of a kiocb struct, and make ceph_sync_read call
the helper as a wrapper.

Make the new helper always return the last object's version.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
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
fs/ceph/super.h