ceph: drop special-casing for ITER_PIPE in ceph_sync_read
authorJeff Layton <jlayton@kernel.org>
Sat, 22 Aug 2020 04:20:59 +0000 (21:20 -0700)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Oct 2020 13:29:26 +0000 (15:29 +0200)
commitc5f575ed08c38d077a581a1ec0c48c23ee6b7c21
tree868ac90f3f6fe95d06528b4022822a28faa0a2bb
parent3a8ebe0b8b616c5f6d72f9a95aa29ccd0b35408f
ceph: drop special-casing for ITER_PIPE in ceph_sync_read

This special casing was added in 7ce469a53e71 (ceph: fix splice
read for no Fc capability case). The confirm callback for ITER_PIPE
expects that the page is Uptodate and returns an error otherwise.

A simpler workaround is just to use the Uptodate bit, which has no
meaning for anonymous pages. Rip out the special casing for ITER_PIPE
and just SetPageUptodate before we copy to the iter.

Cc: John Hubbard <jhubbard@nvidia.com>
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c