VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Jan Kara <jack@suse.cz> 2017-04-29 21:07:30 -0400 committer: Theodore Ts'o <tytso@mit.edu> 2017-04-29 21:07:30 -0400 commit: 5052b069acf73866d00077d8bc49983c3ee903e5 parent: c52c47e4b4fbe4284602fc2ccbfc4a4d8dc05b49
Commit Summary:
jbd2: fix dbench4 performance regression for 'nobarrier' mounts
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 9410ec462ba6..f1906fa54321 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -1361,7 +1361,7 @@ static int jbd2_write_superblock(journal_t *journal, int write_flags)
 	jbd2_superblock_csum_set(journal, sb);
 	get_bh(bh);
 	bh->b_end_io = end_buffer_write_sync;
-	ret = submit_bh(REQ_OP_WRITE, write_flags, bh);
+	ret = submit_bh(REQ_OP_WRITE, write_flags | REQ_SYNC, bh);
 	wait_on_buffer(bh);
 	if (buffer_write_io_error(bh)) {
 		clear_buffer_write_io_error(bh);