Skip to content

ext4: Allow writeback IO without io_end

Jan Kara linux-ext4 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ext4: Move error reporting on bio completion to ext4_finish_bio()fs/ext4/page-io.c+14 -140 replies
2/4ext4: Allow IO submission without io_endfs/ext4/page-io.c+8 -150 replies
3/4ext4: Don't allocate io_end for writeback from ext4_writepage()fs/ext4/inode.c+0 -80 replies
4/4ext4: Remove unnecessary io_end allocation from ext4_writepages()fs/ext4/inode.c+2 -130 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/4] ext4: Allow writeback IO without io_end

Hello,

this patch series allows ext4 to do page writeback without having io_end allocated for the cases when block allocation is not required (it is the part of my writepages improvements that didn't get merged in the first round). In such cases io_end is not really necessary (it is really required only when extent conversion has to happen after IO has finished) so just tweak the IO completion code to allow IO submission without io_end allocated. It saves us memory allocation on writeback path - it is not a big deal for performance but it is nice in close-to-ENOMEM situations.

The patches have passed xfstests for ext4 and ext3 configurations, specifically I have taken care to verify IO error handling still works.

Honza