diff options
| author | Jens Axboe <axboe@kernel.dk> | 2025-02-04 21:39:59 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-02-27 13:20:59 +0300 |
| commit | b194bc4efae97ad8cd453200e3004eba70851112 (patch) | |
| tree | 0867f17bfe3a2bf59724f7d8b94ded290094984e /include | |
| parent | 53cfafdd1530f86c2ef8ecbbcb9aeae4da115cb2 (diff) | |
| download | linux-b194bc4efae97ad8cd453200e3004eba70851112.tar.xz | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/iomap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 1fd66bc29cc1..ea29388b2fba 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -190,6 +190,7 @@ struct iomap_folio_ops { #define IOMAP_DAX 0 #endif /* CONFIG_FS_DAX */ #define IOMAP_ATOMIC (1 << 9) +#define IOMAP_DONTCACHE (1 << 10) struct iomap_ops { /* |
