Skip to content

ext4: Cleanup data=journal writeback path

Jan Kara linux-ext4 llvm oe-kbuild-all 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7ext4: Update stale comment about write constraintsfs/ext4/inode.c+7 -240 replies
2/7ext4: Use nr_to_write directly in mpage_prepare_extent_to_map()fs/ext4/inode.c+3 -30 replies
3/7ext4: Mark page for delayed dirtying only if it is pinnedfs/ext4/inode.c+15 -131 reply
4/7ext4: Don't unlock page in ext4_bio_write_page()fs/ext4/inode.c fs/ext4/page-io.c+7 -50 replies
5/7ext4: Move page unlocking out of mpage_submit_page()fs/ext4/inode.c+12 -90 replies
6/7ext4: Move mpage_page_done() calls after error handlingfs/ext4/inode.c+6 -50 replies
7/7ext4: Convert data=journal writeback to use ext4_writepages()fs/ext4/inode.c include/trace/events/ext4.h+90 -2570 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/7] ext4: Cleanup data=journal writeback path

Hello,

this patch series implements promised cleanup of ext4 data=journal writeback path. That way we can get rid of last remnants of old support for .writepage callback and mostly unify this writeback path with standard data handling modes. We also update some of the stale comments regarding data=journal mode along the way.

Note that patch 3 (ext4: Mark page for delayed dirtying only if it is pinned) currently breaks somewhat the data=journal guarantees if mapped page cache is used as a buffer for direct IO read because that path does not pin pages yet (David Howels is working on it). But I figured this is not a huge deal for a cornercase usecase of a cornercase configuration and keeping marking page for delayed dirtying unconditionally is problematic as checkpointing dirties the page as well so it is effectively permanently added to the journal. It was problematic already in the past and happened to work only by luck.

Honza