]> www.infradead.org Git - users/willy/linux.git/commit
iomap: Support large folios in invalidatepage
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 13 Jan 2021 15:48:49 +0000 (10:48 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 9 Dec 2021 21:08:13 +0000 (16:08 -0500)
commita8edd70cb06c2d4657e8862304f29e656a40402e
treeb827a4d827c762eaf60dfec77d084153115dd2e0
parent685f430b8bfea90584c984362a0065f866d06c83
iomap: Support large folios in invalidatepage

If we're punching a hole in a large folio, we need to remove the
per-folio iomap data as the folio is about to be split and each page will
need its own.  If a dirty folio is only partially-uptodate, the iomap
data contains the information about which blocks cannot be written back,
so assert that a dirty folio is fully uptodate.

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/iomap/buffered-io.c