1
0
Fork 0

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: Liu Song <liu.song11@zte.com.cn>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
hifive-unleashed-5.2
Liu Song 2019-04-06 18:14:17 -04:00 committed by Theodore Ts'o
parent 79a3aaa7b8
commit fb20375109
1 changed files with 0 additions and 1 deletions

View File

@ -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;