Skip to content

ext4: Several simplifications and fixes

Jan Kara linux-ext4 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 40 repliesApplied
  2. v15 patches 13 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/12ext4: Always use ext4_bio_write_page() for writeoutfs/ext4/ext4.h fs/ext4/inode.c fs/ext4/page-io.c +1 more+16 -1231 reply
2/12ext4: Use redirty_page_for_writepage() in ext4_bio_write_page()fs/ext4/page-io.c+4 -31 reply
3/12ext4: Remove bogus wait for unwritten extents in ext4_ind_direct_IOfs/ext4/indirect.c+0 -510 replies
4/12ext4: Disable merging of uninitialized extentsfs/ext4/extents.c+18 -4321 replies
5/12ext4: Remove unnecessary wait for extent conversion in ext4_fallocate()fs/ext4/extents.c+0 -20 replies
6/12ext4: Move work from io_end to inodefs/ext4/ext4.h fs/ext4/page-io.c fs/ext4/super.c+13 -271 reply
7/12ext4: Simplify list handling in ext4_do_flush_completed_IO()fs/ext4/page-io.c+1 -131 reply
8/12ext4: Remove __ext4_journalled_writepage() from mpage_da_submit_io()fs/ext4/inode.c+2 -111 reply
9/12ext4: Dirty page has always buffers attachedfs/ext4/inode.c+36 -1091 reply
10/12ext4: Simplify mpage_add_bh_to_extent()fs/ext4/inode.c+9 -201 reply
11/12ext4: Make ext4_bio_writepage() handle unprepared buffersfs/ext4/page-io.c+0 -71 reply
12/12ext4: Fix ext4_writepage() to achieve data=ordered guaranteesfs/ext4/inode.c+22 -141 reply

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by.

PatchZheng Liu
1/12R-b
2/12
3/12R-b
4/12R-b
5/12R-b
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/12 v2] ext4: Several simplifications and fixes

Hi,

this patch series contains several simplifications of ext4 code I came across
when thinking how to simplify handling of uninitialized extents. The series has somewhat grown since last time. I have quite a bit more patches in my tree (e.g. removing the need for page pointers from ext4_ioend_t so the structure shrunk a lot, moving of PageWriteback completion after extent conversion, ...) but they need more work and I'm not sure they will be ready for the next merge window. But I hope everything in this series should be simple enough so that it can go in.

The series contains two fixes:
[PATCH 02/12] ext4: Use redirty_page_for_writepage() in ext4_bio_write_page() and
[PATCH 11/12] ext4: Make ext4_bio_writepage() handle unprepared buffers [PATCH 12/12] ext4: Fix ext4_writepage() to achieve data=ordered guarantees

The rest are simplifications and cleanups. In total the series removes ~250 LOC.

Honza