]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/filemap: Add filemap_add_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 8 Dec 2020 13:56:28 +0000 (08:56 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 16 Aug 2021 03:00:44 +0000 (23:00 -0400)
commit9ac79fccaa04cbe522769be718b67de69db9b94b
treefb697cd3f1ae335b19336f86822325ec3418feb4
parentdabba1aba97f4df49e4d85ba1b2aa677ea7c121d
mm/filemap: Add filemap_add_folio()

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>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
include/linux/mm.h
include/linux/pagemap.h
kernel/bpf/verifier.c
mm/filemap.c
mm/folio-compat.c