diff options
| author | Christian Brauner <brauner@kernel.org> | 2024-12-04 12:00:12 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2024-12-04 12:00:12 +0100 |
| commit | 930e7c209b77a9006db9590320e8dea5aa433c81 (patch) | |
| tree | 2a5bc7c5e39801a39e7de76cde586e6f32828d05 /fs/jbd2/commit.c | |
| parent | fs/qnx6: Fix building with GCC 15 (diff) | |
| parent | jbd2: flush filesystem device before updating tail sequence (diff) | |
| download | linux-930e7c209b77a9006db9590320e8dea5aa433c81.tar.gz linux-930e7c209b77a9006db9590320e8dea5aa433c81.zip | |
Merge patch series "jbd2: two straightforward fixes"
Two simple fixes for jdb2.
* patches from https://lore.kernel.org/r/20241203014407.805916-1-yi.zhang@huaweicloud.com:
jbd2: flush filesystem device before updating tail sequence
jbd2: increase IO priority for writing revoke records
Link: https://lore.kernel.org/r/20241203014407.805916-1-yi.zhang@huaweicloud.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/jbd2/commit.c')
| -rw-r--r-- | fs/jbd2/commit.c | 4 |
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); |
