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

Commit fb203751 authored by Liu Song's avatar Liu Song Committed by Theodore Ts'o
Browse files

jbd2: remove repeated assignments in __jbd2_log_wait_for_space()



At the beginning, nblocks has been assigned. There is no need
to repeat the assignment in the while loop, and remove it.

Signed-off-by: default avatarLiu Song <liu.song11@zte.com.cn>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
parent 79a3aaa7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -132,7 +132,6 @@ void __jbd2_log_wait_for_space(journal_t *journal)
			return;
		}
		spin_lock(&journal->j_list_lock);
		nblocks = jbd2_space_needed(journal);
		space_left = jbd2_log_space_left(journal);
		if (space_left < nblocks) {
			int chkpt = journal->j_checkpoint_transactions != NULL;