|
@@ -55,7 +55,7 @@ get_transaction(journal_t *journal, transaction_t *transaction)
|
|
spin_lock_init(&transaction->t_handle_lock);
|
|
spin_lock_init(&transaction->t_handle_lock);
|
|
|
|
|
|
/* Set up the commit timer for the new transaction. */
|
|
/* Set up the commit timer for the new transaction. */
|
|
- journal->j_commit_timer.expires = transaction->t_expires;
|
|
|
|
|
|
+ journal->j_commit_timer.expires = round_jiffies(transaction->t_expires);
|
|
add_timer(&journal->j_commit_timer);
|
|
add_timer(&journal->j_commit_timer);
|
|
|
|
|
|
J_ASSERT(journal->j_running_transaction == NULL);
|
|
J_ASSERT(journal->j_running_transaction == NULL);
|