summaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <dev@lankhorst.se>2025-01-23 19:58:12 +0300
committerMaarten Lankhorst <dev@lankhorst.se>2025-01-23 19:58:12 +0300
commit37ba6c7f4c69ee775dd3d3f84e45d9f89f1cf183 (patch)
treeeaa3fe68838f976ed4f6a3ca0dbb378a00f8ad16 /fs/jbd2/commit.c
parentdb8b2c0e2abc90d1025fd7f6d4461b21b1d3248e (diff)
parent07c5b277208cf9a9e9cf31bf0143977d7f030aa1 (diff)
downloadlinux-37ba6c7f4c69ee775dd3d3f84e45d9f89f1cf183.tar.xz
Merge remote-tracking branch 'drm/drm-next' into drm-misc-next-fixes
A regression was caused by commit e4b5ccd392b9 ("drm/v3d: Ensure job pointer is set to NULL after job completion"), but this commit is not yet in next-fixes, fast-forward it. Try #2, first one didn't have v6.13 in it. Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
Diffstat (limited to 'fs/jbd2/commit.c')
-rw-r--r--fs/jbd2/commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
index 9153ff3a08e7..e8e80761ac73 100644
--- a/fs/jbd2/commit.c
+++ b/fs/jbd2/commit.c
@@ -772,9 +772,9 @@ start_journal_io:
/*
* If the journal is not located on the file system device,
* then we must flush the file system device before we issue
- * the commit record
+ * the commit record and update the journal tail sequence.
*/
- if (commit_transaction->t_need_data_flush &&
+ if ((commit_transaction->t_need_data_flush || update_tail) &&
(journal->j_fs_dev != journal->j_dev) &&
(journal->j_flags & JBD2_BARRIER))
blkdev_issue_flush(journal->j_fs_dev);