File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -772,9 +772,9 @@ void jbd2_journal_commit_transaction(journal_t *journal)
772
772
/*
773
773
* If the journal is not located on the file system device,
774
774
* then we must flush the file system device before we issue
775
- * the commit record
775
+ * the commit record and update the journal tail sequence.
776
776
*/
777
- if (commit_transaction -> t_need_data_flush &&
777
+ if (( commit_transaction -> t_need_data_flush || update_tail ) &&
778
778
(journal -> j_fs_dev != journal -> j_dev ) &&
779
779
(journal -> j_flags & JBD2_BARRIER ))
780
780
blkdev_issue_flush (journal -> j_fs_dev );
Original file line number Diff line number Diff line change @@ -654,7 +654,7 @@ static void flush_descriptor(journal_t *journal,
654
654
set_buffer_jwrite (descriptor );
655
655
BUFFER_TRACE (descriptor , "write" );
656
656
set_buffer_dirty (descriptor );
657
- write_dirty_buffer (descriptor , REQ_SYNC );
657
+ write_dirty_buffer (descriptor , JBD2_JOURNAL_REQ_FLAGS );
658
658
}
659
659
#endif
660
660
You can’t perform that action at this time.
0 commit comments