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>
This commit is contained in:
parent
79a3aaa7b8
commit
fb20375109
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user