# Re: \[PATCH v14 088/138\] mm/filemap: Add filemap\_get\_folio

- From: David Howells \<dhowells@redhat.com\>
- Date: 2021-08-10 22:05:42 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/08/212039
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/5.md

```text
Matthew Wilcox (Oracle) [ref] wrote:

> filemap_get_folio() is a replacement for find_get_page().
> Turn pagecache_get_page() into a wrapper around __filemap_get_folio().
> Remove find_lock_head() as this use case is now covered by
> filemap_get_folio().
> 
> Reduces overall kernel size by 209 bytes.  __filemap_get_folio() is
> 316 bytes shorter than pagecache_get_page() was, but the new
> pagecache_get_page() is 99 bytes

longer, one presumes.

> .
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>

Reviewed-by: David Howells <dhowells@redhat.com>


```
