gfs2: Remove use of error flag in journal reads
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 6 Dec 2023 19:58:06 +0000 (19:58 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 20 Dec 2023 20:29:41 +0000 (21:29 +0100)
commitff7a85af5a5bdda04756a8cdbdc0dd9a7a8ea468
treeb865f1ef20292b455ea620c42a0e9884e3952480
parente0f1f021782d6a2e719a451218554a8198c77120
gfs2: Remove use of error flag in journal reads

Conventionally, we use the uptodate bit to signal whether a read
encountered an error or not.  Use folio_end_read() to set the uptodate
bit on success.  Also use filemap_set_wb_err() to communicate the errno
instead of the more heavy-weight mapping_set_error().

Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/lops.c