]> git.baikalelectronics.ru Git - kernel.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>
Tue, 2 Aug 2022 16:34:02 +0000 (12:34 -0400)
commiteba1d6bbfd06f605e4e104f51f2ddc8ebc6698cd
tree18821a9d5a7b31f8e56f22d6dc8fcba5dd9758a0
parent752d9de8ac8f9d5baf1aaa7cadc264f8006423f6
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