Unverified Commit 25b065a7 authored by Jens Axboe's avatar Jens Axboe Committed by Christian Brauner
Browse files

mm/filemap: use filemap_end_dropbehind() for read invalidation



Use the filemap_end_dropbehind() helper rather than calling
folio_unmap_invalidate() directly, as we need to check if the folio has
been redirtied or marked for writeback once the folio lock has been
re-acquired.

Cc: stable@vger.kernel.org
Reported-by: default avatarTrond Myklebust <trondmy@hammerspace.com>
Fixes: 8026e49b ("mm/filemap: add read support for RWF_DONTCACHE")
Link: https://lore.kernel.org/linux-fsdevel/ba8a9805331ce258a622feaca266b163db681a10.camel@hammerspace.com/


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/20250527133255.452431-3-axboe@kernel.dk


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 095f627a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment