ceph: don't SetPageError on readpage errors
authorJeff Layton <jlayton@kernel.org>
Thu, 1 Oct 2020 17:40:49 +0000 (13:40 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 12 Oct 2020 13:29:27 +0000 (15:29 +0200)
PageError really only has meaning within a particular subsystem. Nothing
looks at this bit in the core kernel code, and ceph itself doesn't care
about it. Don't bother setting the PageError bit on error.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c

index 97827f6..137c0a5 100644 (file)
@@ -241,7 +241,6 @@ static int ceph_do_readpage(struct file *filp, struct page *page)
        if (err == -ENOENT)
                err = 0;
        if (err < 0) {
-               SetPageError(page);
                ceph_fscache_readpage_cancel(inode, page);
                if (err == -EBLOCKLISTED)
                        fsc->blocklisted = true;