iomap: Allow iomap_write_begin() to be called with the full length
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 9 Dec 2021 20:47:44 +0000 (15:47 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 18 Dec 2021 05:06:00 +0000 (00:06 -0500)
commitd454ab82bc7f4aa7af9f539d5cf9a1e237cdcbc2
treef78a28ca4085a1c22e766b116073b237004c26cb
parentea0f843aa7942f169ff45d8c68aa81c1645772a6
iomap: Allow iomap_write_begin() to be called with the full length

In the future, we want write_begin to know the entire length of the
write so that it can choose to allocate large folios.  Pass the full
length in from __iomap_zero_iter() and limit it where necessary.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c