mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	btrfs: remove unused variable length in btrfs_insert_one_raid_extent()
Remove the variable length in btrfs_insert_one_raid_extent() as it is unused. Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
		
							parent
							
								
									d0f038104f
								
							
						
					
					
						commit
						4016358e85
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -199,12 +199,8 @@ int btrfs_insert_one_raid_extent(struct btrfs_trans_handle *trans, | ||||||
| 	for (int i = 0; i < num_stripes; i++) { | 	for (int i = 0; i < num_stripes; i++) { | ||||||
| 		u64 devid = bioc->stripes[i].dev->devid; | 		u64 devid = bioc->stripes[i].dev->devid; | ||||||
| 		u64 physical = bioc->stripes[i].physical; | 		u64 physical = bioc->stripes[i].physical; | ||||||
| 		u64 length = bioc->stripes[i].length; |  | ||||||
| 		struct btrfs_raid_stride *raid_stride = &stripe_extent->strides[i]; | 		struct btrfs_raid_stride *raid_stride = &stripe_extent->strides[i]; | ||||||
| 
 | 
 | ||||||
| 		if (length == 0) |  | ||||||
| 			length = bioc->size; |  | ||||||
| 
 |  | ||||||
| 		btrfs_set_stack_raid_stride_devid(raid_stride, devid); | 		btrfs_set_stack_raid_stride_devid(raid_stride, devid); | ||||||
| 		btrfs_set_stack_raid_stride_physical(raid_stride, physical); | 		btrfs_set_stack_raid_stride_physical(raid_stride, physical); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Johannes Thumshirn
						Johannes Thumshirn