Skip to content

ext4 fast commit fixes

Harshad Shirwadkar linux-ext4 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest22 patches 0 repliesNew
  2. v110 patches 21 repliesSuperseded

Changes in v2 from the cover letter

- Broke couple of misc patches into separate patches
- Added a few new fixes:
- atomic update of mount flags
- no fast commits on aborted journal
- Dropped confusing fast commit mount options
- Dropped jbd2_fc_init()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22ext4: describe fast_commit feature flagsDocumentation/filesystems/ext4/journal.rst Documentation/filesystems/ext4/super.rst fs/ext4/ext4.h+20 -00 replies
2/22ext4: mark fc ineligible if inode gets evictied due to mem pressurefs/ext4/fast_commit.c fs/ext4/fast_commit.h fs/ext4/inode.c +1 more+8 -60 replies
3/22ext4: drop redundant calls ext4_fc_track_rangefs/ext4/extents.c fs/ext4/super.c+0 -90 replies
4/22ext4: fixup ext4_fc_track_* functions' signaturefs/ext4/ext4.h fs/ext4/extents.c fs/ext4/fast_commit.c +2 more+74 -630 replies
5/22jbd2: rename j_maxlen to j_total_len and add jbd2_journal_max_txn_bufsfs/ext4/fsmap.c fs/ext4/super.c fs/jbd2/commit.c +4 more+20 -150 replies
6/22ext4: clean up the JBD2 API that initializes fast commitsfs/ext4/fast_commit.c fs/ext4/fast_commit.h fs/ext4/super.c +2 more+65 -580 replies
7/22jbd2: drop jbd2_fc_init documentationDocumentation/filesystems/journalling.rst+2 -40 replies
8/22jbd2: don't use state lock during commit pathfs/jbd2/journal.c include/linux/jbd2.h+6 -100 replies
9/22jbd2: don't pass tid to jbd2_fc_end_commit_fallback()fs/ext4/fast_commit.c fs/jbd2/journal.c include/linux/jbd2.h+11 -50 replies
10/22jbd2: add todo for a fast commit performance optimizationfs/jbd2/commit.c+9 -00 replies
11/22jbd2: don't touch buffer state until it is filledfs/jbd2/journal.c+0 -40 replies
12/22jbd2: don't read journal->j_commit_sequence without taking a lockfs/jbd2/journal.c+4 -20 replies
13/22ext4: dedpulicate the code to wait on inode that's being committedfs/ext4/fast_commit.c+27 -340 replies
14/22ext4: fix code documentatioonfs/ext4/fast_commit.c+2 -10 replies
15/22ext4: mark buf dirty before submitting fast commit bufferfs/ext4/fast_commit.c+1 -10 replies
16/22ext4: remove unnecessary fast commit calls from ext4_file_mmapfs/ext4/file.c+0 -20 replies
17/22ext4: fix inode dirty check in case of fast commitsfs/ext4/ext4.h fs/ext4/fast_commit.c fs/ext4/inode.c+1 -80 replies
18/22ext4: disable fast commit with data journallingfs/ext4/fast_commit.c fs/ext4/fast_commit.h fs/ext4/super.c +1 more+14 -30 replies
19/22ext4: issue fsdev cache flush before starting fast commitfs/ext4/fast_commit.c+7 -00 replies
20/22ext4: make s_mount_flags modifications atomicfs/ext4/ext4.h fs/ext4/fast_commit.c fs/ext4/file.c +4 more+52 -340 replies
21/22jbd2: don't start fast commit on aborted journalfs/jbd2/journal.c+2 -00 replies
22/22ext4: cleanup fast commit mount optionsfs/ext4/super.c+4 -80 replies

Reviews trailers per patch

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

PatchJan KaraAndrea Righi
1/22R-b
2/22
3/22
4/22
5/22
6/22
7/22
8/22
9/22
10/22
11/22
12/22
13/22
14/22
15/22
16/22
17/22R-b T-b
18/22R-b
19/22R-b
20/22
21/22
22/22

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 v2 00/22] ext4 fast commit fixes

ext4: fast commit fixes

This patch series adds several code-only (no on disk format changes) fixes for the fast commit code. I verified that there were no regressions introduced by this patch series in xfstests auto and log groups in fast_commit and 4k configurations.

Changes since V1:

- Broke couple of misc patches into separate patches
- Added a few new fixes:
- atomic update of mount flags
- no fast commits on aborted journal
- Dropped confusing fast commit mount options
- Dropped jbd2_fc_init()

Harshad Shirwadkar (22):
ext4: describe fast_commit feature flags
ext4: mark fc ineligible if inode gets evictied due to mem pressure
ext4: drop redundant calls ext4_fc_track_range
ext4: fixup ext4_fc_track_* functions' signature
jbd2: rename j_maxlen to j_total_len and add jbd2_journal_max_txn_bufs
ext4: clean up the JBD2 API that initializes fast commits
jbd2: drop jbd2_fc_init documentation
jbd2: don't use state lock during commit path
jbd2: don't pass tid to jbd2_fc_end_commit_fallback()
jbd2: add todo for a fast commit performance optimization
jbd2: don't touch buffer state until it is filled
jbd2: don't read journal->j_commit_sequence without taking a lock
ext4: dedpulicate the code to wait on inode that's being committed
ext4: fix code documentatioon
ext4: mark buf dirty before submitting fast commit buffer
ext4: remove unnecessary fast commit calls from ext4_file_mmap
ext4: fix inode dirty check in case of fast commits
ext4: disable fast commit with data journalling
ext4: issue fsdev cache flush before starting fast commit
ext4: make s_mount_flags modifications atomic
jbd2: don't start fast commit on aborted journal
ext4: cleanup fast commit mount options

 Documentation/filesystems/ext4/journal.rst |   6 +
 Documentation/filesystems/ext4/super.rst   |   7 +
 Documentation/filesystems/journalling.rst  |   6 +-
 fs/ext4/ext4.h                             |  66 +++++---
 fs/ext4/extents.c                          |   7 +-
 fs/ext4/fast_commit.c                      | 169 +++++++++++----------
 fs/ext4/fast_commit.h                      |   6 +-
 fs/ext4/file.c                             |   6 +-
 fs/ext4/fsmap.c                            |   2 +-
 fs/ext4/fsync.c                            |   2 +-
 fs/ext4/inode.c                            |  19 +--
 fs/ext4/mballoc.c                          |   4 +-
 fs/ext4/namei.c                            |  61 ++++----
 fs/ext4/super.c                            |  43 +++---
 fs/jbd2/commit.c                           |  11 +-
 fs/jbd2/journal.c                          | 138 +++++++++--------
 fs/jbd2/recovery.c                         |   6 +-
 fs/ocfs2/journal.c                         |   2 +-
 include/linux/jbd2.h                       |  23 ++-
 include/trace/events/ext4.h                |  10 +-
 20 files changed, 328 insertions(+), 266 deletions(-)
Signature · 1 line
2.29.1.341.ge80a0c044ae-goog