iomap: make buffered writes work with RWF_UNCACHED buffered-uncached.3
authorJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2024 21:56:16 +0000 (14:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2024 03:51:49 +0000 (20:51 -0700)
commit31727e2982aeee014e54006c0236d552c4484a74
tree804b9b20389638d6f77007eb5c800af88799e5eb
parent71a7f791aa6f62edc0543914ba355b0a89d8f31f
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