提交 1dfa24a4 编写于 作者: M Matthew Wilcox (Oracle)

filemap: Handle AOP_TRUNCATED_PAGE in do_read_cache_folio()

If the call to filler() returns AOP_TRUNCATED_PAGE, we need to
retry the page cache lookup.
Signed-off-by: NMatthew Wilcox (Oracle) <willy@infradead.org>
上级 9bc3e869
......@@ -3524,8 +3524,10 @@ static struct folio *do_read_cache_folio(struct address_space *mapping,
folio_clear_error(folio);
filler:
err = filler(file, folio);
if (err < 0) {
if (err) {
folio_put(folio);
if (err == AOP_TRUNCATED_PAGE)
goto repeat;
return ERR_PTR(err);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册