projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a740762
)
ext4: mark buf dirty before submitting fast commit buffer
author
Harshad Shirwadkar
<harshadshirwadkar@gmail.com>
Fri, 6 Nov 2020 03:59:04 +0000
(19:59 -0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 7 Nov 2020 04:01:04 +0000
(23:01 -0500)
Mark the fast commit buffer as dirty before submission.
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Link:
https://lore.kernel.org/r/20201106035911.1942128-16-harshadshirwadkar@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/fast_commit.c
patch
|
blob
|
history
diff --git
a/fs/ext4/fast_commit.c
b/fs/ext4/fast_commit.c
index 639b2a308c7ba67914592efae7e6f1b8a5b2103f..05e6e76a7663546b18078673233cd688c3825cbf 100644
(file)
--- a/
fs/ext4/fast_commit.c
+++ b/
fs/ext4/fast_commit.c
@@
-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);