]> 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>
Fri, 10 Dec 2021 14:41:59 +0000 (09:41 -0500)
commit81e0fc72a5a1cf3b6cfdea0a54401d266816e960
tree77aebbecc89f18f7174f0df45c1a47fcb06fdf10
parentb251f32dcdd851e6aa97b78c0a8d78975d8150e0
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