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, 13 Dec 2019 03:39:53 +0000 (20:39 -0700)
commitd6102bc3e7ca4a986ff6ff235fac0f5103f02fc3
treef8adbfb054073764d83fcf1954de2e9f801a5186
parent43ce419c8515488093791ecf3be32cf8c77d9dda
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