diff options
| author | John Garry <john.g.garry@oracle.com> | 2025-03-03 20:11:10 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-03-06 13:00:12 +0300 |
| commit | b4de0e9be963b95c46c4a5426e94059923d236d6 (patch) | |
| tree | 51d61c486bdbc4ba46eb7fda4e01b6eb8984c617 /include/linux | |
| parent | 1743d385e704c41ef028697ef44eeab987d5f5a2 (diff) | |
| download | linux-b4de0e9be963b95c46c4a5426e94059923d236d6.tar.xz | |
iomap: Rename IOMAP_ATOMIC -> IOMAP_ATOMIC_HW
In future xfs will support a SW-based atomic write, so rename
IOMAP_ATOMIC -> IOMAP_ATOMIC_HW to be clear which mode is being used.
Also relocate setting of IOMAP_ATOMIC_HW to the write path in
__iomap_dio_rw(), to be clear that this flag is only relevant to writes.
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20250303171120.2837067-3-john.g.garry@oracle.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iomap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index ea29388b2fba..87cd7079aaf3 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -189,7 +189,7 @@ struct iomap_folio_ops { #else #define IOMAP_DAX 0 #endif /* CONFIG_FS_DAX */ -#define IOMAP_ATOMIC (1 << 9) +#define IOMAP_ATOMIC_HW (1 << 9) #define IOMAP_DONTCACHE (1 << 10) struct iomap_ops { |
