mpage: convert __mpage_writepage() to use a folio more fully
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 26 Jan 2023 20:12:55 +0000 (20:12 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:33:34 +0000 (22:33 -0800)
commit9160cffd45ee93bc20de134e4f127dac9af0cc18
tree5f4c0e67bd8097c08669202230f7e290f967bb2d
parentd585bdbeb79aa13b8a9bbe952d90f5252f7fe909
mpage: convert __mpage_writepage() to use a folio more fully

This is just a conversion to the folio API.  While there are some nods
towards supporting multi-page folios in here, the blocks array is still
sized for one page's worth of blocks, and there are other assumptions such
as the blocks_per_page variable.

[willy@infradead.org: fix accidentally-triggering WARN_ON_ONCE]
Link: https://lkml.kernel.org/r/Y9kuaBgXf9lKJ8b0@casper.infradead.org
Link: https://lkml.kernel.org/r/20230126201255.1681189-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/mpage.c