Commit df3c1e9a authored by Theodore Ts'o's avatar Theodore Ts'o

jbd2: don't unplug after writing revoke records

During commit process, keep the block device plugged after we are done
writing the revoke records, until we are finished writing the rest of
the commit records in the journal.  This will allow most of the
journal blocks to be written in a single I/O operation, instead of
separating the the revoke blocks from the rest of the journal blocks.
Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 10542c22
...@@ -555,7 +555,6 @@ void jbd2_journal_commit_transaction(journal_t *journal) ...@@ -555,7 +555,6 @@ void jbd2_journal_commit_transaction(journal_t *journal)
blk_start_plug(&plug); blk_start_plug(&plug);
jbd2_journal_write_revoke_records(journal, commit_transaction, jbd2_journal_write_revoke_records(journal, commit_transaction,
&log_bufs, WRITE_SYNC); &log_bufs, WRITE_SYNC);
blk_finish_plug(&plug);
jbd_debug(3, "JBD2: commit phase 2b\n"); jbd_debug(3, "JBD2: commit phase 2b\n");
...@@ -582,7 +581,6 @@ void jbd2_journal_commit_transaction(journal_t *journal) ...@@ -582,7 +581,6 @@ void jbd2_journal_commit_transaction(journal_t *journal)
err = 0; err = 0;
bufs = 0; bufs = 0;
descriptor = NULL; descriptor = NULL;
blk_start_plug(&plug);
while (commit_transaction->t_buffers) { while (commit_transaction->t_buffers) {
/* Find the next buffer to be journaled... */ /* Find the next buffer to be journaled... */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment