mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	mm/z3fold: remove confusing local variable l reassignment
The local variable l holds the address of unbuddied[i] which won't change after we take the pool lock. Remove it to avoid confusion. Link: https://lkml.kernel.org/r/20220308134311.59086-6-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Vitaly Wool <vitaly.wool@konsulko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									8ea2f86cea
								
							
						
					
					
						commit
						a3148b5fea
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -876,7 +876,6 @@ lookup: | |||
| 
 | ||||
| 		/* Re-check under lock. */ | ||||
| 		spin_lock(&pool->lock); | ||||
| 		l = &unbuddied[i]; | ||||
| 		if (unlikely(zhdr != list_first_entry(READ_ONCE(l), | ||||
| 						struct z3fold_header, buddy)) || | ||||
| 		    !z3fold_page_trylock(zhdr)) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Miaohe Lin
						Miaohe Lin