]> 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>
Mon, 29 Nov 2021 13:30:52 +0000 (08:30 -0500)
commitfa30bc3598ce5169e7db4142e6c4d198ec75d49b
tree3b5bf2d53ad18b29ffc10690a72a9b3935b65064
parent56f14e5f0befbd503efff2c58495a84655484db5
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