]> 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, 25 Nov 2021 19:03:38 +0000 (14:03 -0500)
commit75a06f5479c4959910f8d95568f8acbb582117d4
tree557851c39c4cb06c56c0b4a639f7836ef5afe3ff
parente36e5e0c9506e705dd1acb18d0327f1e2a29ae7c
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