Skip to content

ext4 code simplification and clean ups

Theodore Ts'o linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ext4: collapse handling of data=ordered and data=writeback codepathsfs/ext4/ext4.h fs/ext4/inode.c include/trace/events/ext4.h+30 -1031 reply
2/7ext4: fold ext4_generic_write_end() into ext4_write_end()fs/ext4/inode.c+27 -372 replies
3/7ext4: fold ext4_alloc_blocks() in ext4_alloc_branch()fs/ext4/indirect.c+46 -1801 reply
4/7ext4: refactor punch hole codefs/ext4/ext4.h fs/ext4/extents.c fs/ext4/indirect.c +1 more+184 -3472 replies
5/7ext4: refactor truncate codefs/ext4/ext4.h fs/ext4/extents.c fs/ext4/indirect.c +1 more+77 -1472 replies
6/7ext4: add mutex_is_locked() assertion to ext4_truncate()fs/ext4/inode.c+15 -12 replies
7/7ext4: add might_sleep() annotationsfs/ext4/ext4_jbd2.c fs/ext4/mballoc.c+10 -02 replies

Reviews trailers per patch

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

PatchLukas CzernerJan Kara
1/7R-b
2/7R-b R-b
3/7R-b
4/7
5/7
6/7
7/7R-b

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

Read the v1 thread

Cover letter [PATCH 0/7] ext4 code simplification and clean ups

I posted an earlier version of the first couple of patches while we were stablizing ext4 during the last merge window. I've since done some further cleanup and rebased these patches v3.9-rc4.

I've also added Zheng's recent patch to clean up ext4_write_end()'s.

Finally, I've added some debugging annotations to make it easier to find bugs when doing future development work.

Theodore Ts'o (6):
ext4: collapse handling of data=ordered and data=writeback codepaths
ext4: fold ext4_alloc_blocks() in ext4_alloc_branch()
ext4: refactor punch hole code
ext4: refactor truncate code
ext4: add mutex_is_locked() assertion to ext4_truncate()
ext4: add might_sleep() annotations

Zheng Liu (1):
ext4: fold ext4_generic_write_end() into ext4_write_end()

 fs/ext4/ext4.h              |  12 +-
 fs/ext4/ext4_jbd2.c         |   6 +
 fs/ext4/extents.c           | 245 +----------------------
 fs/ext4/indirect.c          | 473 +++++---------------------------------------
 fs/ext4/inode.c             | 433 ++++++++++++++++++++++++++++------------
 fs/ext4/mballoc.c           |   4 +
 include/trace/events/ext4.h |  10 +-
 7 files changed, 376 insertions(+), 807 deletions(-)
Signature · 1 line
1.7.12.rc0.22.gcdd159b