squashfs: Return the actual error from squashfs_read_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 27 May 2022 03:33:43 +0000 (23:33 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Aug 2022 16:34:02 +0000 (12:34 -0400)
commit31e748e4b1df84dbb136f2e1dc542daefbe202b2
treecfa339dceba9430f11bd0f330e9063fac1bb0535
parentb7a6eb22ba10f8f6104575dbbbe8c5ad36afd9ac
squashfs: Return the actual error from squashfs_read_folio()

Since we actually know what error happened, we can report it instead
of having the generic code return -EIO for pages that were unlocked
without being marked uptodate.  Also remove a test of PageError since
we have the return value at this point.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/squashfs/file.c