Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1be2add6 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

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: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 229309ca
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -500,8 +500,9 @@ int __jbd2_log_start_commit(journal_t *journal, tid_t target)
		/* This should never happen, but if it does, preserve
		   the evidence before kjournald goes into a loop and
		   increments j_commit_sequence beyond all recognition. */
		WARN(1, "jbd: bad log_start_commit: %u %u %u %u\n",
		     journal->j_commit_request, journal->j_commit_sequence,
		WARN_ONCE(1, "jbd: bad log_start_commit: %u %u %u %u\n",
			  journal->j_commit_request,
			  journal->j_commit_sequence,
			  target, journal->j_running_transaction ? 
			  journal->j_running_transaction->t_tid : 0);
	return 0;