diff options
Diffstat (limited to 'fs/jbd2/transaction.c')
-rw-r--r-- | fs/jbd2/transaction.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 13dcbc990f41..48c21bac5a56 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c | |||
@@ -1255,8 +1255,10 @@ int jbd2_journal_stop(handle_t *handle) | |||
1255 | trans_time = ktime_to_ns(ktime_sub(ktime_get(), | 1255 | trans_time = ktime_to_ns(ktime_sub(ktime_get(), |
1256 | transaction->t_start_time)); | 1256 | transaction->t_start_time)); |
1257 | 1257 | ||
1258 | commit_time = max_t(u64, commit_time, | ||
1259 | 1000*journal->j_min_batch_time); | ||
1258 | commit_time = min_t(u64, commit_time, | 1260 | commit_time = min_t(u64, commit_time, |
1259 | 1000*jiffies_to_usecs(1)); | 1261 | 1000*journal->j_max_batch_time); |
1260 | 1262 | ||
1261 | if (trans_time < commit_time) { | 1263 | if (trans_time < commit_time) { |
1262 | ktime_t expires = ktime_add_ns(ktime_get(), | 1264 | ktime_t expires = ktime_add_ns(ktime_get(), |