iomap: make buffered writes work with RWF_UNCACHED
authorJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2024 21:56:16 +0000 (14:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Nov 2024 14:15:21 +0000 (07:15 -0700)
commit3db3773f47a973057ce3038a93c06f2051f97a84
treeb88f6073dafcbc044211f482daf41cc3dd712608
parenta35eb9121be83a5cccb7e2c5a5094b852df18649
iomap: make buffered writes work with RWF_UNCACHED

Add iomap buffered write support for RWF_UNCACHED. If RWF_UNCACHED is
set for a write, mark the folios being written as uncached. Then
writeback completion will drop the pages. The write_iter handler simply
kicks off writeback for the pages, and writeback completion will take
care of the rest.

This still needs the user of the iomap buffered write helpers to call
iocb_uncached_write() upon successful issue of the writes.

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