File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,12 @@ __releases(&journal->j_state_lock)
7979 if (space_left < nblocks ) {
8080 int chkpt = journal -> j_checkpoint_transactions != NULL ;
8181 tid_t tid = 0 ;
82+ bool has_transaction = false;
8283
83- if (journal -> j_committing_transaction )
84+ if (journal -> j_committing_transaction ) {
8485 tid = journal -> j_committing_transaction -> t_tid ;
86+ has_transaction = true;
87+ }
8588 spin_unlock (& journal -> j_list_lock );
8689 write_unlock (& journal -> j_state_lock );
8790 if (chkpt ) {
@@ -92,7 +95,7 @@ __releases(&journal->j_state_lock)
9295 * journal was aborted due to an error.
9396 */
9497 ;
95- } else if (tid ) {
98+ } else if (has_transaction ) {
9699 /*
97100 * jbd2_journal_commit_transaction() may want
98101 * to take the checkpoint_mutex if JBD2_FLUSHED
You can’t perform that action at this time.
0 commit comments