mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	btrfs: Remove fs_info argument from remove_free_space_extent
This function takes a transaction handle which already has a reference to the fs_info. Use it and remove the extra argument. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
		
							parent
							
								
									5cb1782213
								
							
						
					
					
						commit
						e581168d1f
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
					@ -690,12 +690,11 @@ static int modify_free_space_bitmap(struct btrfs_trans_handle *trans,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static int remove_free_space_extent(struct btrfs_trans_handle *trans,
 | 
					static int remove_free_space_extent(struct btrfs_trans_handle *trans,
 | 
				
			||||||
				    struct btrfs_fs_info *fs_info,
 | 
					 | 
				
			||||||
				    struct btrfs_block_group_cache *block_group,
 | 
									    struct btrfs_block_group_cache *block_group,
 | 
				
			||||||
				    struct btrfs_path *path,
 | 
									    struct btrfs_path *path,
 | 
				
			||||||
				    u64 start, u64 size)
 | 
									    u64 start, u64 size)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct btrfs_root *root = fs_info->free_space_root;
 | 
						struct btrfs_root *root = trans->fs_info->free_space_root;
 | 
				
			||||||
	struct btrfs_key key;
 | 
						struct btrfs_key key;
 | 
				
			||||||
	u64 found_start, found_end;
 | 
						u64 found_start, found_end;
 | 
				
			||||||
	u64 end = start + size;
 | 
						u64 end = start + size;
 | 
				
			||||||
| 
						 | 
					@ -801,8 +800,8 @@ int __remove_from_free_space_tree(struct btrfs_trans_handle *trans,
 | 
				
			||||||
		return modify_free_space_bitmap(trans, block_group, path,
 | 
							return modify_free_space_bitmap(trans, block_group, path,
 | 
				
			||||||
						start, size, 1);
 | 
											start, size, 1);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		return remove_free_space_extent(trans, fs_info, block_group,
 | 
							return remove_free_space_extent(trans, block_group, path,
 | 
				
			||||||
						path, start, size);
 | 
											start, size);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue