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 /fs/ext4/inode.c | |
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 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 7c54ae5fcbd4..ba2f1e3db7c7 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3467,7 +3467,7 @@ static inline bool ext4_want_directio_fallback(unsigned flags, ssize_t written) return false; /* atomic writes are all-or-nothing */ - if (flags & IOMAP_ATOMIC) + if (flags & IOMAP_ATOMIC_HW) return false; /* can only try again if we wrote nothing */ |