ceph: convert ceph_write_begin to netfs_write_begin
authorJeff Layton <jlayton@kernel.org>
Fri, 5 Jun 2020 14:43:21 +0000 (10:43 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 27 Apr 2021 21:52:22 +0000 (23:52 +0200)
commitd801327d9500c74628b65121eedbdb31441c58c9
treeed3142952d15dce295b3c775573dd0d94ba26eeb
parentf0702876e152f0443911514aec8b2bf563a2432b
ceph: convert ceph_write_begin to netfs_write_begin

Convert ceph_write_begin to use the netfs_write_begin helper. Most of
the ops we need for it are already in place from the readpage conversion
but we do add a new check_write_begin op since ceph needs to be able to
vet whether there is an incompatible writeback already in flight before
reading in the page.

With this, we can also remove the old ceph_do_readpage helper.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c