]> www.infradead.org Git - users/willy/linux.git/commit
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>
Mon, 29 Nov 2021 13:26:10 +0000 (08:26 -0500)
commit064cf0fb9ba7da432ef971ad4e65fb978d94b26c
treeff322273ffab9309759b7cbd53caba52fab75313
parente9926349c3432bbd3f3c2c6d1286384a87e474b3
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