Skip to content

Add dirty range scoping to jbd2

Ross Zwisler linux-ext4 linux-fsdevel linux-mm lkml stable 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 Latest3 patches 4 repliesApplied
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Relocated the code which resets dirty range upon transaction completion. (Jan)
- Cc'd [email protected] because we see this issue with v4.14 and v4.19 stable kernels in the field.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3mm: add filemap_fdatawait_range_keep_errors()include/linux/fs.h mm/filemap.c+24 -00 replies
2/3jbd2: introduce jbd2_inode dirty range scopingfs/jbd2/commit.c fs/jbd2/journal.c fs/jbd2/transaction.c +1 more+69 -272 replies
3/3ext4: use jbd2_inode dirty range scopingfs/ext4/ext4_jbd2.h fs/ext4/inode.c fs/ext4/move_extent.c+18 -102 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJan Kara
1/3R-b
2/3R-b
3/3R-b

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 0/3] Add dirty range scoping to jbd2

Changes from v1:
- Relocated the code which resets dirty range upon transaction completion. (Jan)
- Cc'd [email protected] because we see this issue with v4.14 and v4.19 stable kernels in the field.

---

This patch series fixes the issue I described here:

https://www.spinics.net/lists/linux-block/msg38274.html

Essentially the issue is that journal_finish_inode_data_buffers() operates on the entire address space of each of the inodes associated with a given journal entry. This means that if we have an inode where we are constantly appending dirty pages we can end up waiting for an indefinite amount of time in journal_finish_inode_data_buffers().

This series improves this situation in ext4 by scoping each of the inode dirty ranges associated with a given transaction. Other users of jbd2 which don't (yet?) take advantage of this scoping (ocfs2) will continue to have the old behavior.

Ross Zwisler (3):
mm: add filemap_fdatawait_range_keep_errors()
jbd2: introduce jbd2_inode dirty range scoping
ext4: use jbd2_inode dirty range scoping

 fs/ext4/ext4_jbd2.h   | 12 +++++------
 fs/ext4/inode.c       | 13 +++++++++---
 fs/ext4/move_extent.c |  3 ++-
 fs/jbd2/commit.c      | 23 ++++++++++++++------
 fs/jbd2/journal.c     |  2 ++
 fs/jbd2/transaction.c | 49 ++++++++++++++++++++++++-------------------
 include/linux/fs.h    |  2 ++
 include/linux/jbd2.h  | 22 +++++++++++++++++++
 mm/filemap.c          | 22 +++++++++++++++++++
 9 files changed, 111 insertions(+), 37 deletions(-)
Signature · 1 line
2.22.0.410.gd8fdbe21b5-goog