forked from mirrors/linux
		
	btrfs: Remove unused op_key var from add_delayed_refs
Added as part of 86d5f99442 ("btrfs: convert prelimary reference
tracking to use rbtrees") but never used. tmp_op_key essentially
subsumed that variable.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
			
			
This commit is contained in:
		
							parent
							
								
									ba89b80268
								
							
						
					
					
						commit
						a6dbceafb9
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -773,15 +773,12 @@ static int add_delayed_refs(const struct btrfs_fs_info *fs_info,
 | 
				
			||||||
	struct btrfs_delayed_extent_op *extent_op = head->extent_op;
 | 
						struct btrfs_delayed_extent_op *extent_op = head->extent_op;
 | 
				
			||||||
	struct btrfs_key key;
 | 
						struct btrfs_key key;
 | 
				
			||||||
	struct btrfs_key tmp_op_key;
 | 
						struct btrfs_key tmp_op_key;
 | 
				
			||||||
	struct btrfs_key *op_key = NULL;
 | 
					 | 
				
			||||||
	struct rb_node *n;
 | 
						struct rb_node *n;
 | 
				
			||||||
	int count;
 | 
						int count;
 | 
				
			||||||
	int ret = 0;
 | 
						int ret = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (extent_op && extent_op->update_key) {
 | 
						if (extent_op && extent_op->update_key)
 | 
				
			||||||
		btrfs_disk_key_to_cpu(&tmp_op_key, &extent_op->key);
 | 
							btrfs_disk_key_to_cpu(&tmp_op_key, &extent_op->key);
 | 
				
			||||||
		op_key = &tmp_op_key;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spin_lock(&head->lock);
 | 
						spin_lock(&head->lock);
 | 
				
			||||||
	for (n = rb_first(&head->ref_tree); n; n = rb_next(n)) {
 | 
						for (n = rb_first(&head->ref_tree); n; n = rb_next(n)) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue