]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add __ceph_sync_read helper support
authorXiubo Li <xiubli@redhat.com>
Thu, 25 Aug 2022 13:31:12 +0000 (09:31 -0400)
committerXiubo Li <xiubli@redhat.com>
Fri, 26 Aug 2022 23:58:55 +0000 (07:58 +0800)
commitdaa34f5ba325bebf7300ed9fc596cfbef8ae061d
tree090512ed1aaec1a55be52a56719854e3032f76d7
parent4fc781bc5680ad812100df4e6557d4a367870328
ceph: add __ceph_sync_read helper support

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.

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