summaryrefslogtreecommitdiffstats
path: root/fs/mpage.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2023-01-26 21:12:54 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-02-03 07:33:34 +0100
commitd585bdbeb79aa13b8a9bbe952d90f5252f7fe909 (patch)
treedb6fb832bc0d53fa57c6f849835b31a1b1854d31 /fs/mpage.c
parentmm: add memcpy_from_file_folio() (diff)
downloadlinux-d585bdbeb79aa13b8a9bbe952d90f5252f7fe909.tar.xz
linux-d585bdbeb79aa13b8a9bbe952d90f5252f7fe909.zip
fs: convert writepage_t callback to pass a folio
Patch series "Convert writepage_t to use a folio". More folioisation. I split out the mpage work from everything else because it completely dominated the patch, but some implementations I just converted outright. This patch (of 2): We always write back an entire folio, but that's currently passed as the head page. Convert all filesystems that use write_cache_pages() to expect a folio instead of a page. Link: https://lkml.kernel.org/r/20230126201255.1681189-1-willy@infradead.org Link: https://lkml.kernel.org/r/20230126201255.1681189-2-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Christoph Hellwig <hch@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/mpage.c')
-rw-r--r--fs/mpage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/mpage.c b/fs/mpage.c
index 55988ea994ee..4890369bb10a 100644
--- a/fs/mpage.c
+++ b/fs/mpage.c
@@ -440,9 +440,10 @@ void clean_page_buffers(struct page *page)
clean_buffers(page, ~0U);
}
-static int __mpage_writepage(struct page *page, struct writeback_control *wbc,
+static int __mpage_writepage(struct folio *folio, struct writeback_control *wbc,
void *data)
{
+ struct page *page = &folio->page;
struct mpage_data *mpd = data;
struct bio *bio = mpd->bio;
struct address_space *mapping = page->mapping;