]> www.infradead.org Git - users/willy/pagecache.git/commit
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>
Wed, 29 Jun 2022 12:51:07 +0000 (08:51 -0400)
commit4188e3e2860d65a43397d4658f74136bf3297808
tree42f06e3770fa18a92190779bde71c74f3bbf8cb3
parent2c62b172802a648cb9bad9b1ad2415a8ecbb7f41
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