diff options
Diffstat (limited to 'fs/jbd2')
-rw-r--r-- | fs/jbd2/checkpoint.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/jbd2/checkpoint.c b/fs/jbd2/checkpoint.c index 2c62c5aae82f..16a698bd906d 100644 --- a/fs/jbd2/checkpoint.c +++ b/fs/jbd2/checkpoint.c | |||
@@ -257,9 +257,12 @@ static void | |||
257 | __flush_batch(journal_t *journal, int *batch_count) | 257 | __flush_batch(journal_t *journal, int *batch_count) |
258 | { | 258 | { |
259 | int i; | 259 | int i; |
260 | struct blk_plug plug; | ||
260 | 261 | ||
262 | blk_start_plug(&plug); | ||
261 | for (i = 0; i < *batch_count; i++) | 263 | for (i = 0; i < *batch_count; i++) |
262 | write_dirty_buffer(journal->j_chkpt_bhs[i], WRITE); | 264 | write_dirty_buffer(journal->j_chkpt_bhs[i], WRITE_SYNC); |
265 | blk_finish_plug(&plug); | ||
263 | 266 | ||
264 | for (i = 0; i < *batch_count; i++) { | 267 | for (i = 0; i < *batch_count; i++) { |
265 | struct buffer_head *bh = journal->j_chkpt_bhs[i]; | 268 | struct buffer_head *bh = journal->j_chkpt_bhs[i]; |