Commit 25b065a
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: Trond Myklebust <trondmy@hammerspace.com>
Fixes: 8026e49 ("mm/filemap: add read support for RWF_DONTCACHE")
Link: https://lore.kernel.org/linux-fsdevel/ba8a9805331ce258a622feaca266b163db681a10.camel@hammerspace.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/20250527133255.452431-3-axboe@kernel.dk
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 095f627 commit 25b065a
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2644 | 2644 | | |
2645 | 2645 | | |
2646 | 2646 | | |
2647 | | - | |
2648 | | - | |
| 2647 | + | |
2649 | 2648 | | |
2650 | 2649 | | |
2651 | 2650 | | |
2652 | 2651 | | |
2653 | 2652 | | |
2654 | 2653 | | |
2655 | 2654 | | |
2656 | | - | |
| 2655 | + | |
2657 | 2656 | | |
2658 | 2657 | | |
2659 | 2658 | | |
| |||
2774 | 2773 | | |
2775 | 2774 | | |
2776 | 2775 | | |
2777 | | - | |
| 2776 | + | |
2778 | 2777 | | |
2779 | 2778 | | |
2780 | 2779 | | |
| |||
0 commit comments