Commit eeb8c2d6 authored by Jens Axboe's avatar Jens Axboe Committed by Akilesh Kailash
Browse files

UPSTREAM: 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.

Bug: 416315033
(cherry picked from commit 25b065a7)
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/


Change-Id: Ia2d0c63f6c627557efb575dada363cbad8bf822a
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>
Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
parent 7f2338bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment