]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs: iomap: Atomic write support
authorJohn Garry <john.g.garry@oracle.com>
Tue, 5 Nov 2024 00:14:02 +0000 (16:14 -0800)
committerDarrick J. Wong <djwong@djwong.org>
Tue, 5 Nov 2024 00:14:02 +0000 (16:14 -0800)
commit9e0933c21c128d6d8ac4d8aae0babaf9a43100b8
treef3a3326ccb80dac6d4049ae3445e24abd6ddb8cc
parenta570bad16b9f5252db2f342622bd71febb39a19c
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>
Documentation/filesystems/iomap/operations.rst
fs/iomap/direct-io.c
fs/iomap/trace.h
include/linux/iomap.h