fs/buffer: Convert __block_write_begin_int() to take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 3 Nov 2021 18:05:47 +0000 (14:05 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 16 Dec 2021 20:49:51 +0000 (15:49 -0500)
commitd1bd0b4ebfe0521964e6937195bd2f76866660c7
treee6c1401ff8a9455e31d7b922d580bc0439296c90
parent640d1930bef4f87ec8d8d2b05f0f6edc1dfcf662
fs/buffer: Convert __block_write_begin_int() to take a folio

There are no plans to convert buffer_head infrastructure to use large
folios, but __block_write_begin_int() is called from iomap, and it's
more convenient and less error-prone if we pass in a folio from iomap.
It also has a nice saving of almost 200 bytes of code from removing
repeated calls to compound_head().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/buffer.c
fs/internal.h
fs/iomap/buffered-io.c