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

UPSTREAM: mm/filemap: drop streaming/uncached pages when writeback completes

If the folio is marked as streaming, drop pages when writeback completes.
Intended to be used with RWF_DONTCACHE, to avoid needing sync writes for
uncached IO.

Bug: 416315033
(cherry picked from commit fb7d3bc4)
Link: https://lkml.kernel.org/r/20241220154831.1086649-10-axboe@kernel.dk


Change-Id: Idd23bd33b22523aa7429133a8cc20b4e9604ad5f
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Cc: Brian Foster <bfoster@redhat.com>
Cc: Chris Mason <clm@meta.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
parent b925f292
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment