iomap: make buffered writes work with RWF_DONTCACHE
authorJens Axboe <axboe@kernel.dk>
Tue, 5 Nov 2024 21:56:16 +0000 (14:56 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Feb 2025 00:24:45 +0000 (17:24 -0700)
commit85ebce0ba7fa93178b684f5db494ef0cca987c03
tree19105dfc484a34885ce75c99658051785bb389fb
parent0ad2507d5d93f39619fc42372c347d6006b64319
iomap: make buffered writes work with RWF_DONTCACHE

Add iomap buffered write support for RWF_DONTCACHE. If RWF_DONTCACHE 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.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/filesystems/iomap/design.rst
Documentation/filesystems/iomap/operations.rst
fs/iomap/buffered-io.c
include/linux/iomap.h