Skip to content

iomap writethrough for O_SYNC writes

Matthew Wilcox (Oracle) linux-fsdevel linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8iomap: Pass struct iomap to iomap_alloc_ioend()fs/iomap/buffered-io.c+10 -80 replies
2/8iomap: Remove iomap_writepage_ctx from iomap_can_add_to_ioend()fs/iomap/buffered-io.c+17 -170 replies
3/8iomap: Do not pass iomap_writepage_ctx to iomap_add_to_ioend()fs/iomap/buffered-io.c+10 -120 replies
4/8iomap: Accept a NULL iomap_writepage_ctx in iomap_submit_ioend()fs/iomap/buffered-io.c+1 -10 replies
5/8iomap: Pass iomap_write_ctx to iomap_write_actor()fs/iomap/buffered-io.c+15 -20 replies
6/8iomap: Allow a NULL writeback_control argument to iomap_alloc_ioend()fs/iomap/buffered-io.c+6 -20 replies
7/8iomap: Pass a length to iomap_add_to_ioend()fs/iomap/buffered-io.c+7 -60 replies
8/8iomap: Add writethrough for O_SYNCfs/iomap/buffered-io.c+66 -122 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] iomap writethrough for O_SYNC writes

Files opened with O_SYNC (... or similar) are currently handled by writing to the page, marking it dirty, then finding all dirty pages, clearing their dirty bit, marking them as writeback and waiting for the writeback to complete. This patchset bypasses two of those steps by marking the pages as writeback from the beginning. It can also be more precise about which bytes in the page are dirty, reducing the number of bytes written.

This whole patchset will have to be redone on top of Christoph's recent iomap_iter patches. That's OK, but it's partly why I've added some forward declarations instead of reorganising the file so they're not needed.

Matthew Wilcox (Oracle) (8):
iomap: Pass struct iomap to iomap_alloc_ioend()
iomap: Remove iomap_writepage_ctx from iomap_can_add_to_ioend()
iomap: Do not pass iomap_writepage_ctx to iomap_add_to_ioend()
iomap: Accept a NULL iomap_writepage_ctx in iomap_submit_ioend()
iomap: Pass iomap_write_ctx to iomap_write_actor()
iomap: Allow a NULL writeback_control argument to iomap_alloc_ioend()
iomap: Pass a length to iomap_add_to_ioend()
iomap: Add writethrough for O_SYNC

 fs/iomap/buffered-io.c | 168 +++++++++++++++++++++++++++++------------
 1 file changed, 120 insertions(+), 48 deletions(-)
Signature · 1 line
2.30.2