diff options
Diffstat (limited to 'fs/jbd2/commit.c')
-rw-r--r-- | fs/jbd2/commit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index e91f051a9859..0d3814a35ed1 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c | |||
@@ -127,8 +127,7 @@ static int journal_submit_commit_record(journal_t *journal, | |||
127 | 127 | ||
128 | JBUFFER_TRACE(descriptor, "submit commit block"); | 128 | JBUFFER_TRACE(descriptor, "submit commit block"); |
129 | lock_buffer(bh); | 129 | lock_buffer(bh); |
130 | get_bh(bh); | 130 | clear_buffer_dirty(bh); |
131 | set_buffer_dirty(bh); | ||
132 | set_buffer_uptodate(bh); | 131 | set_buffer_uptodate(bh); |
133 | bh->b_end_io = journal_end_buffer_io_sync; | 132 | bh->b_end_io = journal_end_buffer_io_sync; |
134 | 133 | ||
@@ -158,7 +157,7 @@ static int journal_submit_commit_record(journal_t *journal, | |||
158 | /* And try again, without the barrier */ | 157 | /* And try again, without the barrier */ |
159 | lock_buffer(bh); | 158 | lock_buffer(bh); |
160 | set_buffer_uptodate(bh); | 159 | set_buffer_uptodate(bh); |
161 | set_buffer_dirty(bh); | 160 | clear_buffer_dirty(bh); |
162 | ret = submit_bh(WRITE, bh); | 161 | ret = submit_bh(WRITE, bh); |
163 | } | 162 | } |
164 | *cbh = bh; | 163 | *cbh = bh; |