hostfs: Handle page write errors correctly
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 27 May 2022 15:20:56 +0000 (11:20 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Aug 2022 16:34:02 +0000 (12:34 -0400)
commite775dfb33d81455bb043e447c5bdca76ae60ea15
tree18821a9d5a7b31f8e56f22d6dc8fcba5dd9758a0
parent31e748e4b1df84dbb136f2e1dc542daefbe202b2
hostfs: Handle page write errors correctly

If a page can't be written back, we need to call mapping_set_error(),
not clear the page's Uptodate flag.  Also remove the clearing of PageError
on success; that flag is used for read errors, not write errors.

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