diff options
| author | John Garry <john.g.garry@oracle.com> | 2024-11-05 03:14:02 +0300 |
|---|---|---|
| committer | Darrick J. Wong <djwong@djwong.org> | 2024-11-05 03:14:02 +0300 |
| commit | 9e0933c21c128d6d8ac4d8aae0babaf9a43100b8 (patch) | |
| tree | f3a3326ccb80dac6d4049ae3445e24abd6ddb8cc /include/linux | |
| parent | a570bad16b9f5252db2f342622bd71febb39a19c (diff) | |
| download | linux-9e0933c21c128d6d8ac4d8aae0babaf9a43100b8.tar.xz | |
fs: iomap: Atomic write support
Support direct I/O atomic writes by producing a single bio with REQ_ATOMIC
flag set.
Initially FSes (XFS) should only support writing a single FS block
atomically.
As with any atomic write, we should produce a single bio which covers the
complete write length.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
[djwong: clarify a couple of things in the docs]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'include/linux')
| -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 4ad12a3c8bae..c7644bdcfca3 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -178,6 +178,7 @@ struct iomap_folio_ops { #else #define IOMAP_DAX 0 #endif /* CONFIG_FS_DAX */ +#define IOMAP_ATOMIC (1 << 9) struct iomap_ops { /* |
