VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Harshad Shirwadkar <harshadshirwadkar@gmail.com> 2020-11-05 19:59:00 -0800 committer: Theodore Ts'o <tytso@mit.edu> 2020-11-06 23:01:04 -0500 commit: 0ee66ddcf3c1503a9bdb3e49a7a96c6e429ddfad parent: cc80586a57f704f806b9a1b99a21cd07e37dbedc
Commit Summary:
jbd2: don't touch buffer state until it is filled
Diffstat:
1 file changed, 0 insertions, 4 deletions
diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c
index 59166e299cde..b5fbcd1b444c 100644
--- a/fs/jbd2/journal.c
+++ b/fs/jbd2/journal.c
@@ -891,11 +891,7 @@ int jbd2_fc_get_buf(journal_t *journal, struct buffer_head **bh_out)
 	if (!bh)
 		return -ENOMEM;
 
-	lock_buffer(bh);
 
-	clear_buffer_uptodate(bh);
-	set_buffer_dirty(bh);
-	unlock_buffer(bh);
 	journal->j_fc_wbuf[fc_off] = bh;
 
 	*bh_out = bh;