]> 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>
Thu, 9 Dec 2021 20:51:39 +0000 (15:51 -0500)
commit2741ef8c46b9f284f55ff78ed7840b42a32e07a4
tree6016a4ace1e507a888431a31c09e8aae693b6fd7
parent4673df9362f1bd776cb83313c2aaf940caaf3dc5
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