Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liu Song and committed by
Theodore Ts'o
fb203751 79a3aaa7

-1
-1
fs/jbd2/checkpoint.c
··· 132 132 return; 133 133 } 134 134 spin_lock(&journal->j_list_lock); 135 - nblocks = jbd2_space_needed(journal); 136 135 space_left = jbd2_log_space_left(journal); 137 136 if (space_left < nblocks) { 138 137 int chkpt = journal->j_checkpoint_transactions != NULL;