iomap: make buffered writes work with RWF_DONTCACHE
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Feb 2025 18:39:59 +0000 (11:39 -0700)
committerChristian Brauner <brauner@kernel.org>
Thu, 27 Feb 2025 10:20:59 +0000 (11:20 +0100)
commitb194bc4efae97ad8cd453200e3004eba70851112
tree0867f17bfe3a2bf59724f7d8b94ded290094984e
parent53cfafdd1530f86c2ef8ecbbcb9aeae4da115cb2
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>
Link: https://lore.kernel.org/r/20250204184047.356762-2-axboe@kernel.dk
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/filesystems/iomap/design.rst
Documentation/filesystems/iomap/operations.rst
fs/iomap/buffered-io.c
include/linux/iomap.h