# Re: \[PATCH v14 086/138\] mm/filemap: Add filemap\_add\_folio()

- From: David Howells \<dhowells@redhat.com\>
- Date: 2021-08-10 21:59:33 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/08/212036
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/5.md

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

> Convert __add_to_page_cache_locked() into __filemap_add_folio().
> Add an assertion to it that (for !hugetlbfs), the folio is naturally
> aligned within the file.  Move the prototype from mm.h to pagemap.h.
> Convert add_to_page_cache_lru() into filemap_add_folio().  Add a
> compatibility wrapper for unconverted callers.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>

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


```
