iomap: make buffered writes work with RWF_UNCACHED buffered-uncached.2
authorJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2024 21:56:16 +0000 (14:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Nov 2024 20:49:43 +0000 (13:49 -0700)
commit65d3106c1429ea5cf00320e5c80d9aa5e1914c80
treee560499b606e7c50bfe692d3e86613052d1be00f
parent9f43d41416af43868737777cce4827b9ba1b2855
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 with drop_writeback. 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.

See the similar patch for the generic filemap handling for performance
results, those were in fact done on XFS using this patch.

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