jbd2: only print the debugging information for tid wraparound once
If we somehow wrap, we don't want to keep printing the warning message over and over again. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
229309caeb
commit
1be2add685
1 changed files with 5 additions and 4 deletions
|
@ -500,10 +500,11 @@ int __jbd2_log_start_commit(journal_t *journal, tid_t target)
|
||||||
/* This should never happen, but if it does, preserve
|
/* This should never happen, but if it does, preserve
|
||||||
the evidence before kjournald goes into a loop and
|
the evidence before kjournald goes into a loop and
|
||||||
increments j_commit_sequence beyond all recognition. */
|
increments j_commit_sequence beyond all recognition. */
|
||||||
WARN(1, "jbd: bad log_start_commit: %u %u %u %u\n",
|
WARN_ONCE(1, "jbd: bad log_start_commit: %u %u %u %u\n",
|
||||||
journal->j_commit_request, journal->j_commit_sequence,
|
journal->j_commit_request,
|
||||||
target, journal->j_running_transaction ?
|
journal->j_commit_sequence,
|
||||||
journal->j_running_transaction->t_tid : 0);
|
target, journal->j_running_transaction ?
|
||||||
|
journal->j_running_transaction->t_tid : 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue