]> 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>
Sat, 18 Dec 2021 05:06:08 +0000 (00:06 -0500)
commit60d8231089f0d955e0cce033421df4b19e9adfb0
treeae8e63f84804c2b91bdf05711019598d9e3799af
parent589110e897ff9cf7c3500c5fce1c688d1ffca6f4
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