Re: [PATCH v14 086/138] mm/filemap: Add filemap_add_folio()

From
Vlastimil Babka <hidden>
Date
2021-08-12 17:34:23
Also in
linux-mm, lkml
Reply to
Matthew Wilcox (Oracle), 2021-07-15
On 7/15/21 5:36 AM, Matthew Wilcox (Oracle) 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>
Acked-by: Vlastimil Babka <redacted>
Thread (389 messages) 389 messages, 13 authors, last reply 2021-08-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help