mm: add FGP_DONTCACHE folio creation flag buffered-uncached.10
authorJens Axboe <axboe@kernel.dk>
Sat, 9 Nov 2024 17:03:01 +0000 (10:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2024 15:30:40 +0000 (08:30 -0700)
commit806b6ec14991743f46e093ba95231099d65e1967
treec9d632ddbcd5fa8401db0ad322b2ce2a146aee23
parent2980cde583416816466d3f2e38617e3edfcf5af7
mm: add FGP_DONTCACHE folio creation flag

Callers can pass this in for uncached folio creation, in which case if
a folio is newly created it gets marked as uncached. If a folio exists
for this index and lookup succeeds, then it will not get marked as
uncached. If an !uncached lookup finds a cached folio, clear the flag.
For that case, there are competeting uncached and cached users of the
folio, and it should not get pruned.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/pagemap.h
mm/filemap.c