mm: make buffered writes work with RWF_UNCACHED
authorJens Axboe <axboe@kernel.dk>
Fri, 6 Dec 2019 19:03:04 +0000 (12:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 31 Jan 2020 22:37:45 +0000 (15:37 -0700)
commitcf08536c3353fb9f95ec4223b6e6aac64718cf44
tree9d3b8aadcd3667d6e242c05cafbc182b1cfea2c3
parenta26b34de6604cf35ab949a3b136e647316629939
mm: make buffered writes work with RWF_UNCACHED

If RWF_UNCACHED is set for io_uring (or pwritev2(2)), we'll drop the
cache instantiated for buffered writes. If new pages aren't
instantiated, we leave them alone. This provides similar semantics to
reads with RWF_UNCACHED set.

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