Skip to content

Commit

Permalink
ext4: mark buf dirty before submitting fast commit buffer
Browse files Browse the repository at this point in the history
Mark the fast commit buffer as dirty before submission.

Suggested-by: Jan Kara <[email protected]>
Signed-off-by: Harshad Shirwadkar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
harshadjs authored and tytso committed Nov 7, 2020
1 parent a740762 commit 764b3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/fast_commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ static void ext4_fc_submit_bh(struct super_block *sb)
if (test_opt(sb, BARRIER))
write_flags |= REQ_FUA | REQ_PREFLUSH;
lock_buffer(bh);
clear_buffer_dirty(bh);
set_buffer_dirty(bh);
set_buffer_uptodate(bh);
bh->b_end_io = ext4_end_buffer_io_sync;
submit_bh(REQ_OP_WRITE, write_flags, bh);
Expand Down

0 comments on commit 764b3fd

Please sign in to comment.