# Re: \[PATCH\] mm/filemap: Use filemap\_read\_page in filemap\_fault

- From: Andrew Morton \<akpm@linux-foundation.org\>
- Date: 2021-03-03 05:38:13 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/03/200929
- Thread: https://ratatoskr.run/linux-mm/2021/02/200703/t.md

```text
On Fri, 26 Feb 2021 14:00:11 +0000 "Matthew Wilcox (Oracle)" [ref] wrote:

> After splitting generic_file_buffered_read() into smaller parts, it
> turns out we can reuse one of the parts in filemap_fault().  This fixes
> an oversight -- waiting for the I/O to complete is now interruptible
> by a fatal signal.  And it saves us a few bytes of text in an unlikely
> path.

We also handle AOP_TRUNCATED_PAGE which the present code fails to do. 
Should this be in the changelog?

Did we handle AOP_TRUNCATED_PAGE in the pre-splitup code, or is this new?



```
