]> www.infradead.org Git - users/willy/pagecache.git/commit
iomap: Handle THPs when writing to pages
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 9 Sep 2020 11:45:09 +0000 (07:45 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 25 Nov 2020 02:00:20 +0000 (21:00 -0500)
commit04ed6e7977c3d68f5e95d4182a6d2e3a2f9e0951
tree05a0d035d127773e2deeb2cc28add2d0e507a664
parent99e31236c159ee6bbac0a7b6057ee13761c8bd59
iomap: Handle THPs when writing to pages

If we come across a THP that is not uptodate when writing to the page
cache, this must be due to a readahead error, so behave the same way as
readpage and split it.  Make sure to flush the right page after completing
the write.  We still only copy up to a page boundary, so there's no need
to flush multiple pages at this time.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/iomap/buffered-io.c